mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 17:47:08 +00:00
Fixed history order bug.
This commit is contained in:
parent
4c8b1d9604
commit
fa5b6bf9cc
1 changed files with 2 additions and 2 deletions
|
@ -49,8 +49,8 @@ public virtual void Add(History item)
|
|||
|
||||
public virtual Quality GetBestQualityInHistory(long episodeId)
|
||||
{
|
||||
var history = AllItems().Where(c => c.EpisodeId == episodeId).ToList().Select(d => new Quality(d.Quality, d.IsProper));
|
||||
history.OrderBy(q => q);
|
||||
var history = AllItems().Where(c => c.EpisodeId == episodeId).Select(d => new Quality(d.Quality, d.IsProper)).OrderBy(c => c);
|
||||
|
||||
return history.FirstOrDefault();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue