Commit 8edbf21a authored by Mindiell's avatar Mindiell

Le nettoyage des scores de RP se font sur tout le monde, et pas sur un utilisateur spécifique

parent 2f6822bc
...@@ -549,11 +549,11 @@ class Wantzel(object): ...@@ -549,11 +549,11 @@ class Wantzel(object):
def clean_master_rp(self): def clean_master_rp(self):
""" """
This method cleans the known user from rp_mastering each 7 days This method cleans known users from rp_mastering each 7 days
""" """
# Cleaning users # Cleaning users
connection = sqlite3.connect(config.sqlite_db) 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.execute("DELETE FROM rpator WHERE score<1")
connection.commit() connection.commit()
# Date of next cleaning # Date of next cleaning
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment