diff --git a/app/Models/Contest.php b/app/Models/Contest.php index ca227ec201c..162ec1f7141 100644 --- a/app/Models/Contest.php +++ b/app/Models/Contest.php @@ -314,11 +314,15 @@ public function entriesByType($user = null, array $preloads = []) }); if ($ruleset === 'mania' && isset($options['variant'])) { - $keys = match ($options['variant']) { - '4k' => 4, - '7k' => 7, - }; - $query->where('osu_beatmaps.diff_size', $keys); + if ($options['variant'] === 'nk') { + $query->whereNotIn('osu_beatmaps.diff_size', [4, 7]); + } else { + $keys = match ($options['variant']) { + '4k' => 4, + '7k' => 7, + }; + $query->where('osu_beatmaps.diff_size', $keys); + } } })->get(); }