fix: dont manually commit after flushing deferred_insert

this runs from scheduled job which commits after finishing.
This commit is contained in:
Ankush Menat 2022-05-04 14:57:04 +05:30
parent ed78a23748
commit 05f9201e07

View file

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