fetch history filtered order fix

This commit is contained in:
Sam Hadow 2024-03-17 22:12:59 +01:00
parent a530b7ae65
commit c493b2315a

View File

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