diff --git a/smart_service/apis/publish_api.py b/smart_service/apis/publish_api.py index 4769c9b..e480e56 100644 --- a/smart_service/apis/publish_api.py +++ b/smart_service/apis/publish_api.py @@ -7,6 +7,7 @@ import frappe.utils import os from frappe.utils import cstr from smart_service.apis.app_user_login import input_validation +import time current_db_name = frappe.conf.get("db_name") site_name = cstr(frappe.local.site) @@ -756,6 +757,7 @@ def merge_json_files(old_json_path, new_json_path, out_file_path): else: var_dict["Variant"]["Systems"].append(i) + time.sleep(0.100) data_old["JSON"][old_var_key] = var_dict final_data["JSON"].append(var_dict)