From 11bcc07bf40201c6b24743d10bc9576a7978d283 Mon Sep 17 00:00:00 2001 From: bleizi Date: Thu, 13 Jul 2023 20:06:57 +0200 Subject: [PATCH] fix date reading and a variable name --- management/commands/extract_ml_registrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/commands/extract_ml_registrations.py b/management/commands/extract_ml_registrations.py index bb95646..bfcb77d 100644 --- a/management/commands/extract_ml_registrations.py +++ b/management/commands/extract_ml_registrations.py @@ -33,7 +33,7 @@ class Command(BaseCommand): if options["type"] == "members": today_date = date.today() - selected_date = date(today_date.year - years, today.month, today.day) + selected_date = date(today_date.year - options["years"], today_date.month, today_date.day) for membership in Membership.objects.filter( club__name="BDE", date_start__lte=today_date,