From cef939a1c9e38e4b47d449d1ec281d581decddb9 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 16 Dec 2024 12:53:22 +0900 Subject: [PATCH] Fix casting --- GlobalRankLookupCache/Controllers/BeatmapItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GlobalRankLookupCache/Controllers/BeatmapItem.cs b/GlobalRankLookupCache/Controllers/BeatmapItem.cs index d35255c..363461b 100644 --- a/GlobalRankLookupCache/Controllers/BeatmapItem.cs +++ b/GlobalRankLookupCache/Controllers/BeatmapItem.cs @@ -110,7 +110,7 @@ private async Task repopulateScores() int liveCount = (int)(long)(await cmd.ExecuteScalarAsync())!; cmd.CommandText = $"select approved from osu_beatmaps where beatmap_id = {beatmapId}"; - isQualified = (int)(await cmd.ExecuteScalarAsync())! == 3; + isQualified = (byte)(await cmd.ExecuteScalarAsync())! == 3; // Check whether things actually changed enough to matter. If not, skip this update. // Of note, if scores *reduced* we should update immediately. This may be a foul play score removed from the header of the leaderboard.