Skip to content

Commit

Permalink
app.prepare_collection_episodes: invert order for channels
Browse files Browse the repository at this point in the history
  • Loading branch information
Zocker1999NET committed Sep 24, 2023
1 parent c8767ea commit ee0a77c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,11 @@ def prepare_collection_episodes(
) -> tuple[Iterable[MediaCollectionLink], Iterable[str]]:
media_links = MediaCollectionLink.select(
lambda l: l.collection == collection
).order_by(MediaCollectionLink.sort_key)
).order_by(
MediaCollectionLink.desc_sort_key
if collection.is_creator
else MediaCollectionLink.sort_key
)
media_titles = remove_common_trails([link.element.title for link in media_links])
return media_links, media_titles

Expand Down

0 comments on commit ee0a77c

Please sign in to comment.