Skip to content

Commit

Permalink
replace "order" by "date_added" in channel video sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Badatos committed Dec 3, 2024
1 parent ff15569 commit e6ed3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pod/video/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def paginator(videos_list, page):
def channel(request, slug_c, slug_t=None):
channel = get_object_or_404(Channel, slug=slug_c, site=get_current_site(request))
videos_list = get_available_videos().filter(channel=channel)
videos_list = sort_videos_list(videos_list, "order", "on")
videos_list = sort_videos_list(videos_list, "date_added", "on")
channel.video_count = videos_list.count()

theme = None
Expand Down

0 comments on commit e6ed3f7

Please sign in to comment.