Skip to content

Commit e07bcf1

Browse files
committed
fix: fix json serialize error
1 parent 76a97ac commit e07bcf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neurons/validators/score_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def submit_results_to_dashboard(self, session_upto: int):
292292
scores = session_result["scores"]
293293
solved_tasks = session_result["solved_tasks"]
294294
competition = {
295-
"session_number": session,
295+
"session_number": int(session),
296296
"competition_type": competition_type,
297297
}
298298

@@ -307,7 +307,7 @@ def submit_results_to_dashboard(self, session_upto: int):
307307
"neuron": {
308308
"hotkey": self.neuron.metagraph.hotkeys[uid],
309309
},
310-
"score": avg_scores[uid],
310+
"score": float(avg_scores[uid]),
311311
})
312312

313313
submit_results({

0 commit comments

Comments
 (0)