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

add sort direction

parent fa58375e
No related branches found
No related tags found
1 merge request!2add sort direction
...@@ -138,7 +138,7 @@ class DataProductDB: ...@@ -138,7 +138,7 @@ class DataProductDB:
if sort: if sort:
if sort.startswith('-'): if sort.startswith('-'):
direction = -1 direction = -1
sort = sort[1:] sort = sort.lstrip('-')
else: else:
direction = 1 direction = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment