From 3eedd071fab46ae29e9cc3d7b05ef9e5cfd446b6 Mon Sep 17 00:00:00 2001 From: jeongjiwoo0522 Date: Tue, 23 Nov 2021 16:57:52 +0900 Subject: [PATCH] =?UTF-8?q?Update=20=EC=83=81=EC=A0=90=EB=82=B4=EC=97=AD?= =?UTF-8?q?=20=EC=B5=9C=EA=B7=BC=EC=88=9C=EC=9C=BC=EB=A1=9C=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/app/model/point/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/app/model/point/history.py b/Server/app/model/point/history.py index ea0fc44..95e31fd 100644 --- a/Server/app/model/point/history.py +++ b/Server/app/model/point/history.py @@ -21,7 +21,7 @@ def __init__(self, student_id: str, point_id: int): @staticmethod def get_point_history(student_id: str): - histories: List['PointHistoryModel'] = PointHistoryModel.query.filter_by(student_id=student_id).all() + histories: List['PointHistoryModel'] = PointHistoryModel.query.filter_by(student_id=student_id).order_by(PointHistoryModel.point_date.desc()).all() result = {'point_history': []} for history in histories: