1
0
Fork 0

send mails 4 weeks after project end reached

This commit is contained in:
Benni Bärmann 2020-10-26 13:01:11 +01:00
parent c816fbd2fe
commit 422094a240
1 changed files with 15 additions and 2 deletions

View File

@ -100,9 +100,22 @@ class Command(BaseCommand):
item.save()
def surveymails_to_project(self):
pass
'''send survey link 4 weeks after end of project reached'''
supported = Project.objects.filter(granted=True)\
.filter(granted_date__lt = date.today() - timedelta(days=28))\
.exclude(survey_mail_send=True)
print(supported)
for item in supported:
self.survey_link(email=item.email,
type='PRO',
pid=9999, ## TODO
name=item.name,
realname=item.realname)
item.survey_mail_send = True
item.save()
def surveymails_to_travel(self):
'''send survey link 3 weeks after end of project reached'''
pass