fix: Set in_import flag to false after import
This commit is contained in:
parent
51e554c4bd
commit
323aacdedd
1 changed files with 2 additions and 0 deletions
|
|
@ -85,6 +85,8 @@ def start_import(data_import):
|
|||
frappe.db.rollback()
|
||||
data_import.db_set("status", "Error")
|
||||
frappe.log_error(title=data_import.name)
|
||||
finally:
|
||||
frappe.flags.in_import = False
|
||||
|
||||
frappe.publish_realtime("data_import_refresh", {"data_import": data_import.name})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue