diff --git a/mocha_server.py b/mocha_server.py index 7affaa5..a9faa57 100755 --- a/mocha_server.py +++ b/mocha_server.py @@ -94,7 +94,7 @@ def fetch_top_n(num): conn = sqlite3.connect(DATABASE) conn.row_factory = sqlite3.Row cursor = conn.cursor() - cursor.execute('SELECT * FROM users ORDER BY score DESC') + cursor.execute('SELECT username, score FROM users ORDER BY score DESC') output = cursor.fetchall() num = int(num)