idolezal commited on
Commit
e8d3984
β€’
1 Parent(s): 11d85cb

Fix average_score

Browse files
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[c]) / len(win_score[c])
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) / len(win_score)
151
  else:
152
  local_results["average_score"] = win_score[category]
153