idolezal commited on
Commit
6845288
β€’
1 Parent(s): 6362604

Enable add to empty table

Browse files
Files changed (1) hide show
  1. server.py +1 -1
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 # TODO: if num_of_competitors > 0 else ???
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: