mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-03 05:25:10 +00:00
Fixed: Sorting by Artist Name in Missing/Cutoff Unmet under Postgres
Fixes #4736 Fixes #3392 Closes #4374
This commit is contained in:
parent
daf8b94c8e
commit
adcec90ef8
1 changed files with 4 additions and 2 deletions
|
@ -102,7 +102,8 @@ private SqlBuilder AlbumsWithoutFilesBuilder(DateTime currentTime)
|
|||
.Where<TrackFile>(f => f.Id == null)
|
||||
.Where<AlbumRelease>(r => r.Monitored == true)
|
||||
.Where<Album>(a => a.ReleaseDate <= currentTime)
|
||||
.GroupBy<Album>(x => x.Id);
|
||||
.GroupBy<Album>(x => x.Id)
|
||||
.GroupBy<Artist>(x => x.SortName);
|
||||
}
|
||||
#pragma warning restore CS0472
|
||||
|
||||
|
@ -125,7 +126,8 @@ private SqlBuilder AlbumsWhereCutoffUnmetBuilder(List<QualitiesBelowCutoff> qual
|
|||
.LeftJoin<Track, TrackFile>((t, f) => t.TrackFileId == f.Id)
|
||||
.Where<AlbumRelease>(r => r.Monitored == true)
|
||||
.Where(BuildQualityCutoffWhereClause(qualitiesBelowCutoff))
|
||||
.GroupBy<Album>(x => x.Id);
|
||||
.GroupBy<Album>(x => x.Id)
|
||||
.GroupBy<Artist>(x => x.SortName);
|
||||
}
|
||||
|
||||
private string BuildQualityCutoffWhereClause(List<QualitiesBelowCutoff> qualitiesBelowCutoff)
|
||||
|
|
Loading…
Reference in a new issue