idolezal commited on
Commit
5409a8a
1 Parent(s): 8c3991f

Fix overwriting of match results

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -219,10 +219,10 @@ class LeaderboardServer:
219
  return None
220
 
221
  model_tournament_table = []
222
- match_results = {}
223
 
224
  with self.var_lock.ro:
225
  for competitor_id in self.tournament_results[submission_id].keys() - {submission_id}: # without self
 
226
  match_results["competitor_id"] = competitor_id
227
  for task in self.tournament_results[submission_id][competitor_id]:
228
  task_category = self.TASKS_METADATA[task]["category"]
 
219
  return None
220
 
221
  model_tournament_table = []
 
222
 
223
  with self.var_lock.ro:
224
  for competitor_id in self.tournament_results[submission_id].keys() - {submission_id}: # without self
225
+ match_results = {}
226
  match_results["competitor_id"] = competitor_id
227
  for task in self.tournament_results[submission_id][competitor_id]:
228
  task_category = self.TASKS_METADATA[task]["category"]