Spaces:
Runtime error
Runtime error
task_score * 100
Browse files
server.py
CHANGED
@@ -128,7 +128,7 @@ class LeaderboardServer:
|
|
128 |
num_of_competitors += 1
|
129 |
if tournament_results[submission_id][competitor_id][task]:
|
130 |
num_of_wins += 1
|
131 |
-
task_score = num_of_wins / num_of_competitors
|
132 |
win_score.setdefault(task_category, []).append(task_score)
|
133 |
|
134 |
if category == task_category:
|
|
|
128 |
num_of_competitors += 1
|
129 |
if tournament_results[submission_id][competitor_id][task]:
|
130 |
num_of_wins += 1
|
131 |
+
task_score = num_of_wins / num_of_competitors * 100 # TODO: if num_of_competitors > 0 else ???
|
132 |
win_score.setdefault(task_category, []).append(task_score)
|
133 |
|
134 |
if category == task_category:
|