fetch history order fix

This commit is contained in:
Sam Hadow 2024-03-17 22:08:46 +01:00
parent a530b7ae65
commit f8a1d086b1

View File

@ -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)}'