Skip to content

Commit

Permalink
Merge pull request #25 from wafflestudio/reverse_list
Browse files Browse the repository at this point in the history
투표 리스트 최신순으로 나오도록 수정
  • Loading branch information
odumag99 authored Jan 10, 2025
2 parents 035267c + 7680e85 commit 8b2b153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snuvote/app/vote/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_ongoing_list(
):
votes = vote_service.get_ongoing_list()
return OnGoingVotesListResponse(
votes_list = [ VotesListInfoResponse.from_vote_user(vote, user) for vote in votes],
votes_list = list(reversed([ VotesListInfoResponse.from_vote_user(vote, user) for vote in votes])),
has_next = True,
next_cursor = 'next_cursor'
)
Expand Down

0 comments on commit 8b2b153

Please sign in to comment.