We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9cf5fa7 + 3c9ea16 commit 210a612Copy full SHA for 210a612
schemas/checkin.py
@@ -34,10 +34,8 @@ def user_model_to_checkin_response(user: User) -> CheckinUserResponse:
34
tshirt_size = None
35
participant_type = None
36
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
- )
+ tshirt_size = user.t_shirt_size
+ participant_type = user.participant_type
41
except ValueError as e:
42
logger.error(f"Invalid enum value in user model: {e}")
43
0 commit comments