diff --git a/kitchen_counter/conversion/management/commands/custom_runserver.py b/kitchen_counter/conversion/management/commands/custom_runserver.py index 7968090..6560150 100755 --- a/kitchen_counter/conversion/management/commands/custom_runserver.py +++ b/kitchen_counter/conversion/management/commands/custom_runserver.py @@ -265,7 +265,7 @@ def run_audit(msg): with tempfile.TemporaryDirectory() as temp_dir: print("Temporary directory created:", temp_dir) temp_filename = os.path.join(temp_dir, 'script_json_file.json') - print(temp_filename) + print("temp file name ----------------?>",temp_filename) with open(temp_filename, 'w') as json_file: json.dump(script_json, json_file, indent=4) script_json = {} @@ -277,7 +277,10 @@ def run_audit(msg): script_json["script_file"] = hash2 script_json["type"] = "script-json" audit_data["script-json"] = script_json + print("data_uploaded") except: + print("###ERROR:",exp) + print("######Error from JSON CREATION############") pass script_csv = {} @@ -309,7 +312,8 @@ def run_audit(msg): to_email = [user.email] email_code = 'SB1' - sendmail(to_email=to_email , email_code=email_code) + key_value_aud = { "script_name" : str(screenplay_name)} + sendmail(to_email=to_email , email_code=email_code, key_value = key_value_aud) # user_infos = user_info(tx_hash=Response,service="Script Audit",gas_fee=gasprice) # addition_result = user_infos.update_info(request) @@ -360,7 +364,8 @@ def run_audit(msg): to_email = [user.email] email_code = 'SB2' - sendmail(to_email=to_email , email_code=email_code) + key_value_aud = { "script_name" : str(screenplay_name)} + sendmail(to_email=to_email , email_code=email_code, key_value = key_value_aud )) Response = UploadScriptAuditData(OWNER_KEY,blockchain_obj.publicKey,blockchain_obj.user_id,script_id,str(audit_data)) print("tx_hash",Response)