From 932ac9ff71ae27ef74c92be2ea83f9f2cac830dd Mon Sep 17 00:00:00 2001 From: Lili Date: Tue, 25 Oct 2022 18:34:48 +0200 Subject: [PATCH] fix counters not resetting hopefully --- tlapbot/owncast_helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tlapbot/owncast_helpers.py b/tlapbot/owncast_helpers.py index f7c57a8..7e42cae 100644 --- a/tlapbot/owncast_helpers.py +++ b/tlapbot/owncast_helpers.py @@ -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.')