From 08013aa229ad3c0bfb71b767c993c588635aaed6 Mon Sep 17 00:00:00 2001 From: BimaAdi Date: Sat, 13 Dec 2025 09:33:08 +0700 Subject: [PATCH] Refactor CheckinUserResponse to use string types for t_shirt_size and participant_type --- routes/tests/test_checkin.py | 1 + schemas/checkin.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/tests/test_checkin.py b/routes/tests/test_checkin.py index 77e77f8..7ea6bfd 100644 --- a/routes/tests/test_checkin.py +++ b/routes/tests/test_checkin.py @@ -42,6 +42,7 @@ def setUp(self) -> None: last_name="user", password=generate_hash_password("password"), is_active=True, + participant_type="Student", ) self.db.add(self.test_user) self.db.commit() diff --git a/schemas/checkin.py b/schemas/checkin.py index 191a649..d5f31c1 100644 --- a/schemas/checkin.py +++ b/schemas/checkin.py @@ -2,7 +2,6 @@ from enum import Enum from core.log import logger from pydantic import BaseModel, EmailStr, Field -from schemas.user_profile import ParticipantType, TShirtSize from models.User import User @@ -11,8 +10,8 @@ class CheckinUserResponse(BaseModel): email: Optional[EmailStr] = None first_name: Optional[str] = None last_name: Optional[str] = None - t_shirt_size: Optional[TShirtSize] = None - participant_type: Optional[ParticipantType] = None + t_shirt_size: Optional[str] = None + participant_type: Optional[str] = None checked_in_day1: bool = False checked_in_day2: bool = False