apply auto_start sort to dl queue

This commit is contained in:
simon 2023-05-07 19:41:37 +07:00
parent 5d0d050149
commit dbaa13bfb0
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 4 additions and 1 deletions

View File

@ -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"}},
],
}
)