CosplayersMissingCover stat is hardcoded to 0 — never wired up #97
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
CosplayersMissingCoverstatistic on the Stats page is rendered in the UI (Stats.razor:48) and has a DTO property (StatsDto.cs:117), but the actual database computation was never implemented.Current state
StatsDto.cs)CosplayersMissingCoverexists — XML doc: "Not wired yet — reserved for future use."Stats.razor:48)_stats.CosplayersMissingCoverStatsRepository.cs:93)dto.CosplayersMissingCover = 0Fix
In
Lactose/Repositories/StatsRepository.cs, replace line 93 with a query that counts people (cosplayers) who either have no albums, or whose albums all lack aCoverAssetId. Something like:This mirrors the existing
AlbumsMissingCoverlogic (line 91) which counts albums whereCoverAssetId == null.