Fix bug in get all counts
This commit is contained in:
@ -107,7 +107,7 @@ def record_message(sender_id, receiver_id, message):
|
|||||||
|
|
||||||
def get_all_counts():
|
def get_all_counts():
|
||||||
"""Fetch all user message counts from SQLite and format them as a string."""
|
"""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()
|
rows = cursor.fetchall()
|
||||||
|
|
||||||
if not rows:
|
if not rows:
|
||||||
|
|||||||
Reference in New Issue
Block a user