Closed Kyuunex closed 4 years ago
/api/get_beatmaps with u of a restricted user returns broken results
/api/get_beatmaps
u
The first result is full of nulls which caused issues with my app and the next few results seem to be from a user with creator_id of 0.
creator_id
0
[ { "beatmapset_id": null, "beatmap_id": null, "approved": null, "total_length": null, "hit_length": null, "version": null, "file_md5": null, "diff_size": null, "diff_overall": null, "diff_approach": null, "diff_drain": null, "mode": null, "count_normal": null, "count_slider": null, "count_spinner": null, "submit_date": "2017-12-22 03:21:11", "approved_date": null, "last_update": "2017-12-22 11:19:45", "artist": "", "title": "", "creator": "", "creator_id": "0", "bpm": "0", "source": "", "tags": "", "genre_id": "1", "language_id": "1", "favourite_count": "0", "rating": "0", "download_unavailable": "0", "audio_unavailable": "0", "playcount": null, "passcount": null, "max_combo": null, "diff_aim": null, "diff_speed": null, "difficultyrating": "0" }, { "beatmapset_id": "162114", "beatmap_id": "395616", "approved": "-2", "total_length": "193", "hit_length": "183", "version": "Hard", "file_md5": "c6eac61957dfa0aa2f4cff73e146d406", "diff_size": "3", "diff_overall": "5", "diff_approach": "9", "diff_drain": "5", "mode": "0", "count_normal": "280", "count_slider": "209", "count_spinner": "0", "submit_date": "2014-04-02 10:11:22", "approved_date": null, "last_update": "2014-04-02 10:15:40", "artist": "Yucha-P ft GUMI", "title": "Escape Game", "creator": "HerpofDerpwood", "creator_id": "0", "bpm": "134", "source": "", "tags": "", "genre_id": "1", "language_id": "1", "favourite_count": "0", "rating": "0", "download_unavailable": "0", "audio_unavailable": "0", "playcount": "0", "passcount": "0", "max_combo": "742", "diff_aim": "1.7563707828521729", "diff_speed": "1.5752975940704346", "difficultyrating": "3.4222049713134766" }, { "beatmapset_id": "162114", "beatmap_id": "395617", "approved": "-2", "total_length": "193", "hit_length": "179", "version": "Normal", "file_md5": "8973e62b0ff62766d544799c08ad4faa", "diff_size": "3", "diff_overall": "5", "diff_approach": "7", "diff_drain": "5", "mode": "0", "count_normal": "238", "count_slider": "172", "count_spinner": "0", "submit_date": "2014-04-02 10:11:22", "approved_date": null, "last_update": "2014-04-02 10:15:40", "artist": "Yucha-P ft GUMI", "title": "Escape Game", "creator": "HerpofDerpwood", "creator_id": "0", "bpm": "134", "source": "", "tags": "", "genre_id": "1", "language_id": "1", "favourite_count": "0", "rating": "0", "download_unavailable": "0", "audio_unavailable": "0", "playcount": "0", "passcount": "0", "max_combo": "636", "diff_aim": "1.7383264303207397", "diff_speed": "1.432806134223938", "difficultyrating": "3.323892593383789" }, { "beatmapset_id": "162116", "beatmap_id": "395624", "approved": "-2", "total_length": "66", "hit_length": "59", "version": "Normal", "file_md5": "8179298b06a5088f9dbc1450a7533b03", "diff_size": "3", "diff_overall": "5", "diff_approach": "4", "diff_drain": "5", "mode": "0", "count_normal": "49", "count_slider": "42", "count_spinner": "1", "submit_date": "2014-04-02 10:17:52", "approved_date": null, "last_update": "2014-04-02 10:20:09", "artist": "Last Alliance", "title": "Hekireki", "creator": "HerpofDerpwood", "creator_id": "0", "bpm": "130", "source": "Hajime no Ippo new challenger", "tags": "hajime no ippo new challenger rising boxing", "genre_id": "1", "language_id": "1", "favourite_count": "0", "rating": "0", "download_unavailable": "0", "audio_unavailable": "0", "playcount": "0", "passcount": "0", "max_combo": "161", "diff_aim": "1.2057040929794312", "diff_speed": "1.0656530857086182", "difficultyrating": "2.3413827419281006" }, { "beatmapset_id": "162116", "beatmap_id": "395625", "approved": "-2", "total_length": "66", "hit_length": "59", "version": "Normal", "file_md5": "19d177c0f7f36b229b733603f3ecb763", "diff_size": "3", "diff_overall": "5", "diff_approach": "7", "diff_drain": "5", "mode": "0", "count_normal": "60", "count_slider": "54", "count_spinner": "1", "submit_date": "2014-04-02 10:17:52", "approved_date": null, "last_update": "2014-04-02 10:20:09", "artist": "Last Alliance", "title": "Hekireki", "creator": "HerpofDerpwood", "creator_id": "0", "bpm": "130", "source": "Hajime no Ippo new challenger", "tags": "hajime no ippo new challenger rising boxing", "genre_id": "1", "language_id": "1", "favourite_count": "0", "rating": "0", "download_unavailable": "0", "audio_unavailable": "0", "playcount": "0", "passcount": "0", "max_combo": "193", "diff_aim": "1.3392776250839233", "diff_speed": "1.2315900325775146", "difficultyrating": "2.624711513519287" }, { "beatmapset_id": "151795", "beatmap_id": "373963", "approved": "-2", "total_length": "65", "hit_length": "2", "version": "Hard", "file_md5": "c114b7fab096f84eea8efb8191b35316", "diff_size": "4", "diff_overall": "5", "diff_approach": "5", "diff_drain": "5", "mode": "0", "count_normal": "6", "count_slider": "1", "count_spinner": "0", "submit_date": "2014-02-20 15:39:24", "approved_date": null, "last_update": "2014-02-20 15:41:55", "artist": "Oku Hanako", "title": "Kusabi", "creator": "SnowLeaf", "creator_id": "0", "bpm": "158.025", "source": "", "tags": "", "genre_id": "1", "language_id": "1", "favourite_count": "1", "rating": "0", "download_unavailable": "0", "audio_unavailable": "0", "playcount": "0", "passcount": "0", "max_combo": "11", "diff_aim": "0.8267565965652466", "diff_speed": "0.7216110825538635", "difficultyrating": "1.600940465927124" } ]
Fixed, will now return nothing.
/api/get_beatmaps
withu
of a restricted user returns broken resultsThe first result is full of nulls which caused issues with my app and the next few results seem to be from a user with
creator_id
of0
.