From 8d9c8b29ab37a7616a5992371c740b0af23fcef6 Mon Sep 17 00:00:00 2001 From: Filip Date: Sat, 24 Aug 2024 02:34:18 +0200 Subject: [PATCH] partly fix "Has Missing Files" filter and counters (#1170) --- Shoko.Server/Services/AnimeGroupService.cs | 2 +- Shoko.Server/Services/AnimeSeriesService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Shoko.Server/Services/AnimeGroupService.cs b/Shoko.Server/Services/AnimeGroupService.cs index 27f855086..9e2e2cbd4 100644 --- a/Shoko.Server/Services/AnimeGroupService.cs +++ b/Shoko.Server/Services/AnimeGroupService.cs @@ -150,7 +150,7 @@ public void RenameAllGroups() /// public void UpdateStatsFromTopLevel(SVR_AnimeGroup group, bool watchedStats, bool missingEpsStats) { - if (group?.AnimeGroupParentID == null) + if (group is not { AnimeGroupParentID: null }) { return; } diff --git a/Shoko.Server/Services/AnimeSeriesService.cs b/Shoko.Server/Services/AnimeSeriesService.cs index 574bec9ce..2f7c54878 100644 --- a/Shoko.Server/Services/AnimeSeriesService.cs +++ b/Shoko.Server/Services/AnimeSeriesService.cs @@ -678,12 +678,12 @@ private void UpdateMissingEpisodeStats(SVR_AnimeSeries series, List