From 37caba76321a3b40a60e8a579e226ff17e8e3fe0 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 7 Feb 2025 21:04:06 -0500 Subject: [PATCH] Fix bug in get all counts --- kowalski.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kowalski.py b/kowalski.py index 0c01210..13b0836 100644 --- a/kowalski.py +++ b/kowalski.py @@ -107,7 +107,7 @@ def record_message(sender_id, receiver_id, message): def get_all_counts(): """Fetch all user message counts from SQLite and format them as a string.""" - cursor.execute("SELECT user_id, count FROM message_counts") + cursor.execute("SELECT user_id, message_count FROM message_counts") rows = cursor.fetchall() if not rows: