Fix error on scores handlers

This commit is contained in:
Nyo 2016-07-20 10:49:29 +02:00
parent 3a2928be53
commit 38008a5451
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ func BeatmapSetStatusPOST(md common.MethodData) common.CodeMessager {
} }
} }
md.DB.Exec(`UPDATE beatmaps md.DB.Exec(`UPDATE beatmaps
SET ranked = ?, ranked_status_freezed = ? SET ranked = ?, ranked_status_freezed = ?
WHERE beatmapset_id = ?`, req.RankedStatus, req.Frozen, param) WHERE beatmapset_id = ?`, req.RankedStatus, req.Frozen, param)

View File

@ -53,8 +53,8 @@ SELECT
beatmaps.max_combo, beatmaps.hit_length, beatmaps.ranked, beatmaps.max_combo, beatmaps.hit_length, beatmaps.ranked,
beatmaps.ranked_status_freezed, beatmaps.latest_update beatmaps.ranked_status_freezed, beatmaps.latest_update
FROM scores FROM scores
LEFT JOIN beatmaps ON beatmaps.beatmap_md5 = scores.beatmap_md5 INNER JOIN beatmaps ON beatmaps.beatmap_md5 = scores.beatmap_md5
LEFT JOIN users ON users.id = scores.userid INNER JOIN users ON users.id = scores.userid
` `
// UserScoresBestGET retrieves the best scores of an user, sorted by PP if // UserScoresBestGET retrieves the best scores of an user, sorted by PP if