1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-24 08:42:53 +00:00

Fixed: Wanted cutoff page shows incorrect count

This commit is contained in:
Qstick 2018-04-15 00:49:16 -04:00
parent b661344ba8
commit 9bd020a130

View file

@ -210,11 +210,11 @@ private QueryBuilder<Album> GetCutOffAlbumsQuery(PagingSpec<Album> pagingSpec, L
private int GetCutOffAlbumsQueryCount(PagingSpec<Album> pagingSpec, List<QualitiesBelowCutoff> qualitiesBelowCutoff, List<LanguagesBelowCutoff> languagesBelowCutoff)
{
var monitored = 0;
var monitored = "(Albums.[Monitored] = 0) OR (Artists.[Monitored] = 0)";
if (pagingSpec.FilterExpressions.FirstOrDefault().ToString().Contains("True"))
{
monitored = 1;
monitored = "(Albums.[Monitored] = 1) AND (Artists.[Monitored] = 1)";
}
string query = string.Format("SELECT Albums.* FROM (SELECT TrackFiles.AlbumId, TrackFiles.Language, COUNT(*) AS FileCount," +