mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-09 10:49:24 +00:00
sort download queue autostart on top
This commit is contained in:
@@ -20,7 +20,14 @@ class DownloadApiListView(ApiBaseView):
|
|||||||
def get(self, request):
|
def get(self, request):
|
||||||
"""get request"""
|
"""get request"""
|
||||||
query_filter = request.GET.get("filter", False)
|
query_filter = request.GET.get("filter", False)
|
||||||
self.data.update({"sort": [{"timestamp": {"order": "asc"}}]})
|
self.data.update(
|
||||||
|
{
|
||||||
|
"sort": [
|
||||||
|
{"auto_start": {"order": "desc"}},
|
||||||
|
{"timestamp": {"order": "asc"}},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
must_list = []
|
must_list = []
|
||||||
if query_filter:
|
if query_filter:
|
||||||
|
|||||||
Reference in New Issue
Block a user