Hi,
I’m writing a custom code (client) and running a loop to collect data, inside the loop I am running a frappe.db.insert() call. The issue I am facing, is that the loop completes before the insert runs. As in, the insert function is threaded and while it’s running, the loop completes before it. Is there a way I can make the code wait for the frappe.db.insert to complete before continuing on?