Skip to content

Commit

Permalink
Update 상점내역 최근순으로 정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjiwoo0522 committed Nov 23, 2021
1 parent c53d8ba commit 3eedd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/app/model/point/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3eedd07

Please sign in to comment.