Browse Source

[fix] weekly auto email report, fixes frappe/erpnext#6936

version-14
Rushabh Mehta 8 years ago
parent
commit
e6f4a89c70
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/email/doctype/auto_email_report/auto_email_report.py

+ 1
- 1
frappe/email/doctype/auto_email_report/auto_email_report.py View File

@@ -130,7 +130,7 @@ def send_daily():
# if not correct weekday, skip
if auto_email_report.frequency=='Weekly':
if now.weekday()!={'Monday':0,'Tuesday':1,'Wednesday':2,
'Thursday':3,'Friday':4,'Saturday':5,'Sunday':6}[auto_email_report.weekday]:
'Thursday':3,'Friday':4,'Saturday':5,'Sunday':6}[auto_email_report.day_of_week]:
continue

auto_email_report.send()


Loading…
Cancel
Save