mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-08-25 23:15:18 +02:00
Fix ruff lint violations
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from ccma.domain.models import HOUSEKEEPER_MEMBER_FIELD_LABELS
|
||||
from ccma.domain.dates import DateValidationError, validate_member_dates
|
||||
from ccma.domain.models import HOUSEKEEPER_MEMBER_FIELD_LABELS
|
||||
from ccma.rules.api import RuleContext, task
|
||||
|
||||
RULE_ID = "birthdate-check"
|
||||
|
||||
@@ -44,7 +44,11 @@ def evaluate(context: RuleContext):
|
||||
)
|
||||
)
|
||||
|
||||
year_from = started_at.year if getattr(context.settings, "retroactive_claims", False) else context.today.year
|
||||
year_from = (
|
||||
started_at.year
|
||||
if getattr(context.settings, "retroactive_claims", False)
|
||||
else context.today.year
|
||||
)
|
||||
for year in range(year_from, context.today.year + 2):
|
||||
actions.extend(_membership_claims(context, started_at, accepted_at, year))
|
||||
return actions
|
||||
|
||||
Reference in New Issue
Block a user