Skip to content

Commit 3b0a0b3

Browse files
committed
fix check_participant_age if not set
1 parent 76d204c commit 3b0a0b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ephios/core/signup/methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def check_inside_signup_timeframe(method, participant):
373373

374374

375375
def check_participant_age(method, participant):
376-
minimum_age = method.configuration.minimum_age
376+
minimum_age = getattr(method.configuration, "minimum_age", None)
377377
day = method.shift.start_time.date()
378378
age = participant.get_age(day)
379379
if minimum_age is not None and age is not None and age < minimum_age:

0 commit comments

Comments
 (0)