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