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: