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()