From 873a85ca0e22400a91699e7fbdb47243cc9badb5 Mon Sep 17 00:00:00 2001 From: Aditya Duggal Date: Wed, 31 Jan 2018 10:54:16 +0530 Subject: [PATCH] Auto Email report limit can be set in site_config (#4935) - Resolves #4934 - Set max_reports_per_user in site_config to an integer --- frappe/email/doctype/auto_email_report/auto_email_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/doctype/auto_email_report/auto_email_report.py b/frappe/email/doctype/auto_email_report/auto_email_report.py index 01b8566982..9a9f736800 100644 --- a/frappe/email/doctype/auto_email_report/auto_email_report.py +++ b/frappe/email/doctype/auto_email_report/auto_email_report.py @@ -12,7 +12,7 @@ from frappe.utils import now, global_date_format, format_time from frappe.utils.xlsxutils import make_xlsx from frappe.utils.csvutils import to_csv -max_reports_per_user = 3 +max_reports_per_user = frappe.local.conf.max_reports_per_user or 3 class AutoEmailReport(Document): def autoname(self):