mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2025-02-05 23:03:03 +00:00
fix date reading and a variable name
This commit is contained in:
parent
c69c5197c9
commit
11bcc07bf4
@ -33,7 +33,7 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
if options["type"] == "members":
|
if options["type"] == "members":
|
||||||
today_date = date.today()
|
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(
|
for membership in Membership.objects.filter(
|
||||||
club__name="BDE",
|
club__name="BDE",
|
||||||
date_start__lte=today_date,
|
date_start__lte=today_date,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user