Remove weekly ranking and move to all time ranking
Browse files
app.py
CHANGED
@@ -442,9 +442,7 @@ def gradio_interface():
|
|
442 |
votes = get_all_votes()
|
443 |
weekly_votes = [
|
444 |
vote for vote in votes
|
445 |
-
if vote.
|
446 |
-
and vote.user_id
|
447 |
-
and vote.user_id != "anonymous"
|
448 |
]
|
449 |
user_vote_count = {}
|
450 |
for vote in weekly_votes:
|
@@ -470,8 +468,7 @@ def gradio_interface():
|
|
470 |
|
471 |
leaderboard_info = gr.Markdown(
|
472 |
value=f"""
|
473 |
-
This leaderboard shows the ranking of users based on the number of votes they have cast
|
474 |
-
It will be updated each week.
|
475 |
"""
|
476 |
)
|
477 |
|
|
|
442 |
votes = get_all_votes()
|
443 |
weekly_votes = [
|
444 |
vote for vote in votes
|
445 |
+
if vote.user_id and vote.user_id != "anonymous"
|
|
|
|
|
446 |
]
|
447 |
user_vote_count = {}
|
448 |
for vote in weekly_votes:
|
|
|
468 |
|
469 |
leaderboard_info = gr.Markdown(
|
470 |
value=f"""
|
471 |
+
This leaderboard shows the ranking of users based on the number of votes they have cast since the start of the arena.
|
|
|
472 |
"""
|
473 |
)
|
474 |
|