Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -240,8 +240,9 @@ async def update_leaderboard(ctx):
|
|
240 |
# levels first
|
241 |
header = levels_list[0]
|
242 |
levels_list = levels_list[1:]
|
|
|
243 |
|
244 |
-
|
245 |
sorted_levels = sorted(enumerate(levels_list, start=1), key=lambda x: x[1], reverse=True)
|
246 |
top_10_levels = sorted_levels[:10]
|
247 |
print(top_10_levels)
|
|
|
240 |
# levels first
|
241 |
header = levels_list[0]
|
242 |
levels_list = levels_list[1:]
|
243 |
+
print(levels_list)
|
244 |
|
245 |
+
levels_list = list(map(int, levels_list))
|
246 |
sorted_levels = sorted(enumerate(levels_list, start=1), key=lambda x: x[1], reverse=True)
|
247 |
top_10_levels = sorted_levels[:10]
|
248 |
print(top_10_levels)
|