Only send download reminders if there's actually a download

This commit is contained in:
Raphael Michel
2020-03-16 09:22:41 +01:00
parent 9a32668ee1
commit 8d23d75dfd
3 changed files with 36 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ def timeline_for_event(event, subevent=None):
if not event.has_subevents:
days = event.settings.get('mail_days_download_reminder', as_type=int)
if days is not None:
if days is not None and event.settings.ticket_download:
reminder_date = (ev.date_from - timedelta(days=days)).replace(hour=0, minute=0, second=0, microsecond=0)
tl.append(TimelineEvent(
event=event, subevent=subevent,