mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
Merge branch 'testing' of github.com:n8detar/tubearchivist into feat/react-frontend
This commit is contained in:
commit
c6571674a8
@ -364,9 +364,7 @@ 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 = {
|
self.data.update({"sort": [{"timestamp": {"order": "asc"}}]})
|
||||||
"sort": [{"timestamp": {"order": "asc"}}],
|
|
||||||
}
|
|
||||||
if query_filter:
|
if query_filter:
|
||||||
if query_filter not in self.valid_filter:
|
if query_filter not in self.valid_filter:
|
||||||
message = f"invalid url query filder: {query_filter}"
|
message = f"invalid url query filder: {query_filter}"
|
||||||
|
Loading…
Reference in New Issue
Block a user