Fix bug in get all counts

This commit is contained in:
2025-02-07 21:04:06 -05:00
parent 1a9f18e98b
commit 37caba7632

View File

@ -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: