idolezal commited on
Commit
b9c54a7
1 Parent(s): 834359f

How to create clean `self.tournament_results`

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -259,7 +259,7 @@ class LeaderboardServer:
259
 
260
  gr.Info('Running tournament...', duration=15)
261
  with self.var_lock.rw:
262
- self.tournament_results = {}
263
  for submission_id in self.submission_ids:
264
  with self.var_lock.ro:
265
  file = self.submission_id_to_file[submission_id]
 
259
 
260
  gr.Info('Running tournament...', duration=15)
261
  with self.var_lock.rw:
262
+ self.tournament_results = {k: {} for k in self.submission_ids}
263
  for submission_id in self.submission_ids:
264
  with self.var_lock.ro:
265
  file = self.submission_id_to_file[submission_id]