fix counters not resetting hopefully

This commit is contained in:
Lili (Tlapka) 2022-10-25 18:34:48 +02:00
parent a667f746f3
commit 932ac9ff71
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,7 @@ def clear_redeem_queue(db):
"DELETE FROM redeem_queue"
)
cursor.execute(
"""UPDATE counters SET counter_count = 0"""
"""UPDATE counters SET count = 0"""
)
db.commit()
except Error as e:
@ -203,4 +203,5 @@ def whole_redeem_queue(db):
def clear_queue_command():
"""Remove all redeems from the redeem queue."""
clear_redeem_queue(get_db())
clear_counters(get_db())
click.echo('Cleared redeem queue.')