Merge branch 'testing' of github.com:n8detar/tubearchivist into feat/react-frontend

This commit is contained in:
n8detar 2022-04-21 08:02:54 -07:00
commit c6571674a8
1 changed files with 1 additions and 3 deletions

View File

@ -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}"