Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
wantzel
Commits
8edbf21a
Commit
8edbf21a
authored
Jan 05, 2017
by
Mindiell
Browse files
Le nettoyage des scores de RP se font sur tout le monde, et pas sur un utilisateur spécifique
parent
2f6822bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
8edbf21a
...
...
@@ -549,11 +549,11 @@ class Wantzel(object):
def
clean_master_rp
(
self
):
"""
This method cleans
the
known user from rp_mastering each 7 days
This method cleans known user
s
from rp_mastering each 7 days
"""
# Cleaning users
connection
=
sqlite3
.
connect
(
config
.
sqlite_db
)
connection
.
execute
(
"UPDATE rpator SET score=score-1
WHERE user='%s'"
%
user
)
connection
.
execute
(
"UPDATE rpator SET score=score-1
"
)
connection
.
execute
(
"DELETE FROM rpator WHERE score<1"
)
connection
.
commit
()
# Date of next cleaning
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment