Spaces:
Running
Running
Fix
Browse files
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 |
|