From 4d9f46649109a67da99c4277dbcb055da26f2303 Mon Sep 17 00:00:00 2001 From: Howl Date: Tue, 23 Aug 2016 16:45:47 +0200 Subject: [PATCH] Forgot a `break` inf a for-range loop. Broke all the mode detection system. --- app/peppy/beatmap.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/peppy/beatmap.go b/app/peppy/beatmap.go index 8119fc2..f62dac2 100644 --- a/app/peppy/beatmap.go +++ b/app/peppy/beatmap.go @@ -94,6 +94,7 @@ FROM beatmaps `+where+" ORDER BY id DESC LIMIT "+strconv.Itoa(common.InString(1, if diffVal != 0 { bm.Mode = osuapi.Mode(i) bm.DifficultyRating = diffVal + break } } bms = append(bms, bm) @@ -112,7 +113,7 @@ var rippleToOsuRankedStatus = map[int]osuapi.ApprovedStatus{ // buggy diffname parser func parseDiffName(name string) (author string, title string, diffName string) { - parts := strings.SplitN(name, "-", 2) + parts := strings.SplitN(name, " - ", 2) author = parts[0] if len(parts) > 1 { title = parts[1]