From c493b2315a0dc7407e0e746fda2deadd1e484013 Mon Sep 17 00:00:00 2001 From: Sam Hadow Date: Sun, 17 Mar 2024 22:12:59 +0100 Subject: [PATCH] fetch history filtered order fix --- src/db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db.py b/src/db.py index a35621e..47ac8a4 100644 --- a/src/db.py +++ b/src/db.py @@ -139,6 +139,7 @@ def get_history_filtered(lists_uuid): sql_request += f' h.uuid = c{str(i)}.item_uuid and c{str(i)}.list_uuid = {str(uuid)} and' sql_request = sql_request[:-3] # remove last 'and' + sql_request += " ORDER BY h.h_timestamp" # order entries connection = connect_db() cursor = connection.cursor()