admin: Fix bad type assertion in history

This commit is contained in:
nemunaire 2025-03-28 19:56:34 +01:00
parent 0edf71107a
commit 24fa72eb8a

View file

@ -875,7 +875,7 @@ func showExerciceFlagStats(c *gin.Context) {
for _, hline := range history {
if hline["kind"].(string) == "flag_found" {
if *hline["secondary"].(*int) == flag.Id {
if int(*hline["secondary"].(*int64)) == flag.Id {
completed += 1
}
}