Spaces:
Running
Running
Fix overwriting of match results
Browse files
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"]
|