This commit is contained in:
Howl 2016-04-27 21:03:16 +02:00
parent 8dbacc5ed9
commit 1b1f2503a2
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ func BeatmapSetStatusPOST(md common.MethodData) common.CodeMessager {
if req.Frozen != 0 && req.Frozen != 1 {
return common.SimpleResponse(400, "frozen status must be either 0 or 1")
}
if req.RankedStatus > 3 || -2 > req.RankedStatus {
return common.SimpleResponse(400, "ranked status must be 4 < x < -3")
if req.RankedStatus > 4 || -1 > req.RankedStatus {
return common.SimpleResponse(400, "ranked status must be 5 < x < -2")
}
md.DB.Exec("UPDATE beatmaps SET ranked = ?, ranked_status_freezed = ? WHERE beatmapset_id = ?", req.RankedStatus, req.Frozen, req.BeatmapSetID)