mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Fix sorting episodes in newsletter with missing season number
This commit is contained in:
parent
5cd0d31b00
commit
e6c193772c
1 changed files with 1 additions and 1 deletions
|
@ -754,7 +754,7 @@ class RecentlyAdded(Newsletter):
|
|||
children = pms_connect.get_item_children(show_rating_key, get_grandchildren=True)
|
||||
filtered_children = [i for i in children['children_list']
|
||||
if self.start_time < helpers.cast_to_int(i['added_at']) < self.end_time]
|
||||
filtered_children.sort(key=lambda x: int(x['parent_media_index']))
|
||||
filtered_children.sort(key=lambda x: helpers.cast_to_int(x['parent_media_index']))
|
||||
|
||||
seasons = []
|
||||
for (index, title), children in groupby(filtered_children,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue