mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
refactor: return job_id to be able to react to it when job is finished. (#45111)
This commit is contained in:
@@ -99,9 +99,9 @@ class BankStatementImport(DataImport):
|
||||
template_options=self.template_options,
|
||||
now=run_now,
|
||||
)
|
||||
return True
|
||||
return job_id
|
||||
|
||||
return False
|
||||
return None
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
@@ -113,7 +113,8 @@ def get_preview_from_template(data_import, import_file=None, google_sheets_url=N
|
||||
|
||||
@frappe.whitelist()
|
||||
def form_start_import(data_import):
|
||||
return frappe.get_doc("Bank Statement Import", data_import).start_import()
|
||||
job_id = frappe.get_doc("Bank Statement Import", data_import).start_import()
|
||||
return job_id is not None
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
|
||||
Reference in New Issue
Block a user