mirror of https://github.com/Sonarr/Sonarr
Fixed: Sorting by episodes on series overview and poster views
Fixes #2167
This commit is contained in:
parent
4399d272dc
commit
195a761c29
|
@ -94,8 +94,9 @@ var Collection = PageableCollection.extend({
|
|||
|
||||
percentOfEpisodes : {
|
||||
sortValue : function(model, attr) {
|
||||
var percentOfEpisodes = model.get(attr);
|
||||
var episodeCount = model.get('episodeCount');
|
||||
var episodeFileCount = model.get('episodeFileCount');
|
||||
var percentOfEpisodes = episodeCount ? episodeFileCount / episodeCount * 100 : 100;
|
||||
|
||||
return percentOfEpisodes + episodeCount / 1000000;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue