From ddce3efde3a3f7cfb34f3432bd5158c3feafb272 Mon Sep 17 00:00:00 2001 From: jingooo5 Date: Sun, 3 Nov 2024 04:27:24 +0900 Subject: [PATCH] chore:update consume_service.py --- Service/consume_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Service/consume_service.py b/Service/consume_service.py index 35cb073..f9a254c 100644 --- a/Service/consume_service.py +++ b/Service/consume_service.py @@ -15,4 +15,4 @@ def purchase_history_save(data : ConsumeHistory): def get_consume_histories_by_item_id(item_id: str): with get_db() as db: - return db.query(ConsumeHistory).filter(ConsumeHistory.item_id == item_id).all() \ No newline at end of file + return db.query(ConsumeHistory).filter(ConsumeHistory.item_id == item_id).order_by(ConsumeHistory.date.asc()).all() \ No newline at end of file