Skip to content
Snippets Groups Projects
Commit fa58375e authored by Nico Vermaas's avatar Nico Vermaas
Browse files

add sort direction

parent c8c54f9a
No related branches found
No related tags found
1 merge request!2add sort direction
......@@ -136,7 +136,7 @@ class DataProductDB:
# if a &sort=<field> url parameter is given then use sort, otherwise omit it (backward compatibility)
if sort:
if sort[0]=='-':
if sort.startswith('-'):
direction = -1
sort = sort[1:]
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment