tdurbor commited on
Commit
9373955
·
1 Parent(s): 4c723cd

Remove weekly ranking and move to all time ranking

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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.timestamp >= start_of_week
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 in the current week. The current ranking is based on votes cast from {start_of_week.strftime('%Y-%m-%d')} to {current_time.strftime('%Y-%m-%d')}.
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