From f8a1d086b15b3d47de0feb3ea24d4fdd45ed0323 Mon Sep 17 00:00:00 2001 From: Sam Hadow Date: Sun, 17 Mar 2024 22:08:46 +0100 Subject: [PATCH] fetch history order fix --- src/db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db.py b/src/db.py index a35621e..ff9505f 100644 --- a/src/db.py +++ b/src/db.py @@ -131,6 +131,7 @@ def get_history_filtered(lists_uuid): sql_request = """ SELECT uuid, quantity, discount_percentage, price, currency, h_timestamp FROM history h + ORDER BY h_timestamp """ for i in range(n_filters): sql_request += f', listcontent c{str(i)}'