From dbaa13bfb0f5283f4a2b71c21a61f2fdf3637c00 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 7 May 2023 19:41:37 +0700 Subject: [PATCH] apply auto_start sort to dl queue --- tubearchivist/home/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/views.py b/tubearchivist/home/views.py index 142c6bc..ef880a7 100644 --- a/tubearchivist/home/views.py +++ b/tubearchivist/home/views.py @@ -413,7 +413,10 @@ class DownloadView(ArchivistResultsView): self.data.update( { "query": {"bool": {"must": must_list}}, - "sort": [{"timestamp": {"order": "asc"}}], + "sort": [ + {"auto_start": {"order": "desc"}}, + {"timestamp": {"order": "asc"}}, + ], } )