Skip to content

Commit

Permalink
fix check_participant_age if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed May 29, 2023
1 parent 76d204c commit 3b0a0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ephios/core/signup/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def check_inside_signup_timeframe(method, participant):


def check_participant_age(method, participant):
minimum_age = method.configuration.minimum_age
minimum_age = getattr(method.configuration, "minimum_age", None)
day = method.shift.start_time.date()
age = participant.get_age(day)
if minimum_age is not None and age is not None and age < minimum_age:
Expand Down

0 comments on commit 3b0a0b3

Please sign in to comment.