fix: dont manually commit after flushing deferred_insert
this runs from scheduled job which commits after finishing.
This commit is contained in:
parent
ed78a23748
commit
05f9201e07
1 changed files with 0 additions and 2 deletions
|
|
@ -42,8 +42,6 @@ def save_to_db():
|
|||
record_count += 1
|
||||
insert_record(record, doctype)
|
||||
|
||||
frappe.db.commit()
|
||||
|
||||
|
||||
def insert_record(record: Union[Dict, "Document"], doctype: str):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue