Skip to content

Commit 210a612

Browse files
authored
Merge pull request #130 from pyconid/fix/user-model-checkin
Add participant type to test user and simplify user model response handling
2 parents 9cf5fa7 + 3c9ea16 commit 210a612

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

schemas/checkin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ def user_model_to_checkin_response(user: User) -> CheckinUserResponse:
3434
tshirt_size = None
3535
participant_type = None
3636
try:
37-
tshirt_size = TShirtSize(user.t_shirt_size) if user.t_shirt_size else None
38-
participant_type = (
39-
ParticipantType(user.participant_type) if user.participant_type else None
40-
)
37+
tshirt_size = user.t_shirt_size
38+
participant_type = user.participant_type
4139
except ValueError as e:
4240
logger.error(f"Invalid enum value in user model: {e}")
4341

0 commit comments

Comments
 (0)