mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-12-22 09:50:15 +00:00
API: fix downloads list sort
This commit is contained in:
parent
1477370376
commit
b76f38e0bc
@ -364,9 +364,7 @@ class DownloadApiListView(ApiBaseView):
|
||||
def get(self, request):
|
||||
"""get request"""
|
||||
query_filter = request.GET.get("filter", False)
|
||||
self.data.update = {
|
||||
"sort": [{"timestamp": {"order": "asc"}}],
|
||||
}
|
||||
self.data.update({"sort": [{"timestamp": {"order": "asc"}}]})
|
||||
if query_filter:
|
||||
if query_filter not in self.valid_filter:
|
||||
message = f"invalid url query filder: {query_filter}"
|
||||
|
Loading…
Reference in New Issue
Block a user