the browser-facing portion of osu!
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #11831 from nanaya/contest-mania-others

Support non-4k/7k mania variant in "best of" contests

authored by

bakaneko and committed by
GitHub
64d9d992 baaac3ea

+9 -5
+9 -5
app/Models/Contest.php
··· 314 314 }); 315 315 316 316 if ($ruleset === 'mania' && isset($options['variant'])) { 317 - $keys = match ($options['variant']) { 318 - '4k' => 4, 319 - '7k' => 7, 320 - }; 321 - $query->where('osu_beatmaps.diff_size', $keys); 317 + if ($options['variant'] === 'nk') { 318 + $query->whereNotIn('osu_beatmaps.diff_size', [4, 7]); 319 + } else { 320 + $keys = match ($options['variant']) { 321 + '4k' => 4, 322 + '7k' => 7, 323 + }; 324 + $query->where('osu_beatmaps.diff_size', $keys); 325 + } 322 326 } 323 327 })->get(); 324 328 }