idolezal commited on
Commit
07329a3
β€’
1 Parent(s): e8d3984
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -147,7 +147,7 @@ class LeaderboardServer:
147
  if category == "overall":
148
  for c in win_score:
149
  local_results[c] = win_score[c]
150
- local_results["average_score"] = sum(win_score) / len(win_score)
151
  else:
152
  local_results["average_score"] = win_score[category]
153
 
 
147
  if category == "overall":
148
  for c in win_score:
149
  local_results[c] = win_score[c]
150
+ local_results["average_score"] = sum(win_score.values()) / len(win_score)
151
  else:
152
  local_results["average_score"] = win_score[category]
153