admin: Fix bad type assertion in history
This commit is contained in:
parent
0edf71107a
commit
24fa72eb8a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue