refactor(report): simplify check further
NoneType will evaluate to False here so we don't need this complexity Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
parent
fbc88a4d24
commit
f8c5a61bbd
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ class Report(Document):
|
|||
if frappe.flags.in_import:
|
||||
return
|
||||
|
||||
if self.is_standard == "Yes" and (frappe.local.conf.get("developer_mode", 0) == 1):
|
||||
if self.is_standard == "Yes" and frappe.conf.developer_mode:
|
||||
export_to_files(
|
||||
record_list=[["Report", self.name]], record_module=self.module, create_init=True
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue