Remove user_id from top_n
This commit is contained in:
parent
ada9fc52de
commit
87ead8051a
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ def fetch_top_n(num):
|
||||||
conn = sqlite3.connect(DATABASE)
|
conn = sqlite3.connect(DATABASE)
|
||||||
conn.row_factory = sqlite3.Row
|
conn.row_factory = sqlite3.Row
|
||||||
cursor = conn.cursor()
|
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()
|
output = cursor.fetchall()
|
||||||
|
|
||||||
num = int(num)
|
num = int(num)
|
||||||
|
|
Reference in a new issue