Skip to content

Commit

Permalink
[fix] weekly auto email report, fixes frappe/erpnext#6936
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta committed Nov 15, 2016
1 parent 0d2674e commit e6f4a89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e6f4a89

Please sign in to comment.