From 87ead8051a3d4c63906852a242b7028f5fcce776 Mon Sep 17 00:00:00 2001 From: Corder Guy Date: Thu, 19 Apr 2018 14:05:30 -0500 Subject: [PATCH] Remove user_id from top_n --- mocha_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)