Fix 500 on user scores

This commit is contained in:
Morgan Bazalgette 2017-02-19 19:01:13 +01:00
parent 69678f21f5
commit 120c027fce
No known key found for this signature in database
GPG Key ID: 40D328300D245DA5
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ WHERE scores.beatmap_md5 = ? AND scores.completed = '3' AND `+md.User.OnlyUserPu
u userData
)
err := rows.Scan(
&s.ID, &s.BeatmapMD5, &s.Score,
&s.ID, &s.BeatmapMD5, &s.Score.Score,
&s.MaxCombo, &s.FullCombo, &s.Mods,
&s.Count300, &s.Count100, &s.Count50,
&s.CountGeki, &s.CountKatu, &s.CountMiss,

View File

@ -87,7 +87,7 @@ func scoresPuts(md common.MethodData, whereClause string, params ...interface{})
b beatmap
)
err = rows.Scan(
&us.ID, &us.BeatmapMD5, &us.Score,
&us.ID, &us.BeatmapMD5, &us.Score.Score,
&us.MaxCombo, &us.FullCombo, &us.Mods,
&us.Count300, &us.Count100, &us.Count50,
&us.CountGeki, &us.CountKatu, &us.CountMiss,