Spaces:
Runtime error
Runtime error
Enable add to empty table
Browse files
server.py
CHANGED
@@ -178,7 +178,7 @@ class LeaderboardServer:
|
|
178 |
num_of_competitors += 1
|
179 |
if tournament_results[submission_id][competitor_id][task]:
|
180 |
num_of_wins += 1
|
181 |
-
task_score = num_of_wins / num_of_competitors * 100
|
182 |
win_score.setdefault(task_category, []).append(task_score)
|
183 |
|
184 |
if category == task_category:
|
|
|
178 |
num_of_competitors += 1
|
179 |
if tournament_results[submission_id][competitor_id][task]:
|
180 |
num_of_wins += 1
|
181 |
+
task_score = num_of_wins / num_of_competitors * 100 if num_of_competitors > 0 else 100
|
182 |
win_score.setdefault(task_category, []).append(task_score)
|
183 |
|
184 |
if category == task_category:
|