Fix error on scores handlers
This commit is contained in:
parent
3a2928be53
commit
38008a5451
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user