Skip to content

Commit

Permalink
partly fix "Has Missing Files" filter and counters (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrails authored Aug 24, 2024
1 parent 87c42a4 commit 8d9c8b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Shoko.Server/Services/AnimeGroupService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void RenameAllGroups()
/// </summary>
public void UpdateStatsFromTopLevel(SVR_AnimeGroup group, bool watchedStats, bool missingEpsStats)
{
if (group?.AnimeGroupParentID == null)
if (group is not { AnimeGroupParentID: null })
{
return;
}
Expand Down
4 changes: 2 additions & 2 deletions Shoko.Server/Services/AnimeSeriesService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -678,12 +678,12 @@ private void UpdateMissingEpisodeStats(SVR_AnimeSeries series, List<SVR_AnimeEpi
{
lock (epReleasedList)
{
epReleasedList.Add(ep, !epReleased || vids.Any());
epReleasedList.Add(ep, epReleased || vids.Any());
}

lock (epGroupReleasedList)
{
epGroupReleasedList.Add(ep, !epReleasedGroup || vids.Any());
epGroupReleasedList.Add(ep, epReleasedGroup || vids.Any());
}
}
catch (Exception e)
Expand Down

0 comments on commit 8d9c8b2

Please sign in to comment.