diff --git a/server/models/check_in.py b/server/models/check_in.py index 9482fcaf..f6c2fe5d 100644 --- a/server/models/check_in.py +++ b/server/models/check_in.py @@ -68,7 +68,7 @@ def validate_check_in_time(db, user_id, proposed_time): return True # No conflicts found # Validator to ensure reminder times are valid - @validator('reminder_times', each_item=True, mode='True') + @validator('reminder_times', each_item=True, pre=True) def validate_reminder_times(cls, v): if v.total_seconds() not in [3600, 86400, 604800, 2592000]: # 1 hour, 1 day, 1 week, ~1 month raise ValueError("Invalid reminder time")