idolezal commited on
Commit
f6916e3
β€’
1 Parent(s): b7293e7

Ensure the leaderboard is up-to-date before the tournament started

Browse files
Files changed (1) hide show
  1. server.py +1 -0
server.py CHANGED
@@ -378,6 +378,7 @@ class LeaderboardServer:
378
  with self.pre_submit_lock:
379
  if self.pre_submit == None:
380
  gr.Info('Running tournament...', duration=15)
 
381
  tournament_results = self.start_tournament(submission_id, file)
382
  self.pre_submit = self.PreSubmit(tournament_results, submission_id, file)
383
  break
 
378
  with self.pre_submit_lock:
379
  if self.pre_submit == None:
380
  gr.Info('Running tournament...', duration=15)
381
+ self.update_leaderboard()
382
  tournament_results = self.start_tournament(submission_id, file)
383
  self.pre_submit = self.PreSubmit(tournament_results, submission_id, file)
384
  break