From efd773e2e8e33ba2b8593792b83dbe2a6c0e378a Mon Sep 17 00:00:00 2001 From: Lili Date: Wed, 4 Jan 2023 13:53:46 +0100 Subject: [PATCH] fix typo that broke check_counter_exists --- tlapbot/owncast_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlapbot/owncast_helpers.py b/tlapbot/owncast_helpers.py index 17f948a..7d993f1 100644 --- a/tlapbot/owncast_helpers.py +++ b/tlapbot/owncast_helpers.py @@ -136,7 +136,7 @@ def change_display_name(db, user_id, new_name): def check_counter_exists(db, counter_name): try: cursor = db.execute( - "SELECT counter FROM counters WHERE name = ?", + "SELECT count FROM counters WHERE name = ?", (counter_name,) ) counter = cursor.fetchone()