From 42b73847eb97ee01af51ccd716c3aabddcf86a61 Mon Sep 17 00:00:00 2001 From: Vermaas <vermaas@astron.nl> Date: Tue, 2 Jul 2024 15:44:25 +0200 Subject: [PATCH] add sort direction --- spaceweather_processing/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spaceweather_processing/app.py b/spaceweather_processing/app.py index f5b09e6..b8c3a22 100644 --- a/spaceweather_processing/app.py +++ b/spaceweather_processing/app.py @@ -138,7 +138,7 @@ class DataProductDB: if sort: if sort.startswith('-'): direction = -1 - sort = sort[1:] + sort = sort.lstrip('-') else: direction = 1 -- GitLab