Skip to content

Commit

Permalink
get_vote에서 participation_code_required도 반환하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
odumag99 committed Jan 8, 2025
1 parent 17c0e66 commit 9a40434
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions snuvote/app/vote/dto/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class VoteDetailResponse(BaseModel):
is_writer: bool
title: str
content: str
participation_code_required: bool
realtime_result: bool
multiple_choice: bool
annonymous_choice: bool
Expand Down
3 changes: 2 additions & 1 deletion snuvote/app/vote/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def get_vote(
is_writer= is_writer,
title = vote.title,
content = vote.content,
participation_code_required = vote.participation_code_required,
realtime_result = vote.realtime_result,
multiple_choice = vote.multiple_choice,
annonymous_choice = vote.annonymous_choice,
Expand Down Expand Up @@ -106,5 +107,5 @@ def paricipate_vote(

#투표 참여하기
vote = vote_service.participate_vote(vote, user, participate_vote_request)

return get_vote(vote.id, user, vote_service)

0 comments on commit 9a40434

Please sign in to comment.