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()