Merge branch 'release/v2.86'
This commit is contained in:
@@ -20,6 +20,7 @@ def getexpired():
|
|||||||
lijst = []
|
lijst = []
|
||||||
for r in rs:
|
for r in rs:
|
||||||
if r.planexpires < datetime.datetime.now().date():
|
if r.planexpires < datetime.datetime.now().date():
|
||||||
|
if r.rowerplan == 'pro' or r.rowerplan == 'coach':
|
||||||
lijst.append(r)
|
lijst.append(r)
|
||||||
return lijst
|
return lijst
|
||||||
|
|
||||||
@@ -28,6 +29,7 @@ class Command(BaseCommand):
|
|||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
expiredrowers = getexpired()
|
expiredrowers = getexpired()
|
||||||
|
|
||||||
|
if len(expiredrowers) > 0:
|
||||||
fullemail = 'roosendaalsander@gmail.com'
|
fullemail = 'roosendaalsander@gmail.com'
|
||||||
subject = "Expired rowers report"
|
subject = "Expired rowers report"
|
||||||
message = "Dear Sander,\n\n"
|
message = "Dear Sander,\n\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user