Allow looking for beatmap md5 in GET /beatmaps

This commit is contained in:
Howl 2016-10-29 14:05:16 +02:00
parent 3ce1f58a48
commit a6b4ad1d3e

View File

@ -153,6 +153,7 @@ func getMultipleBeatmaps(md common.MethodData) common.CodeMessager {
Where("beatmap_id = ?", md.Query("bb")). Where("beatmap_id = ?", md.Query("bb")).
Where("beatmapset_id = ?", md.Query("s")). Where("beatmapset_id = ?", md.Query("s")).
Where("song_name = ?", md.Query("song_name")). Where("song_name = ?", md.Query("song_name")).
Where("beatmap_md5 = ?", md.Query("beatmap_md5")).
Where("ranked_status_freezed = ?", md.Query("ranked_status_frozen"), "0", "1") Where("ranked_status_freezed = ?", md.Query("ranked_status_frozen"), "0", "1")
rows, err := md.DB.Query(baseBeatmapSelect+ rows, err := md.DB.Query(baseBeatmapSelect+