Skip to content

Commit

Permalink
end_datetime에 timezone 지정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
morecleverer committed Jan 25, 2025
1 parent 4c4315f commit d0533c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions snuvote/app/vote/dto/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def from_choice(choice: Choice, user: User, annonymous_choice, realtime_result,
participants_name = None

# 실시간 결과 공개 투표가 아니고 진행 중인 경우
#수정중
if not realtime_result:
if not realtime_result and end_datetime.replace(tzinfo=timezone.utc) > datetime.now(timezone.utc):
num_participants = None
participants_name = None

Expand Down

0 comments on commit d0533c8

Please sign in to comment.