Auto Email report limit can be set in site_config (#4935)

- Resolves #4934
- Set max_reports_per_user in site_config to an integer
This commit is contained in:
Aditya Duggal 2018-01-31 10:54:16 +05:30 committed by Rushabh Mehta
parent 473d3eb6be
commit 873a85ca0e

View file

@ -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):