From d5e3f033ee1fc4f76003276e109b656d374428c0 Mon Sep 17 00:00:00 2001 From: Williams Date: Tue, 1 Oct 2024 12:06:21 -0400 Subject: [PATCH] fixing --- tr_sys/tr_ars/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tr_sys/tr_ars/utils.py b/tr_sys/tr_ars/utils.py index 71bd6ea..1bcef6f 100644 --- a/tr_sys/tr_ars/utils.py +++ b/tr_sys/tr_ars/utils.py @@ -977,10 +977,9 @@ def scrub_null_attributes(data): def appraise(mesg, data, agent_name,retry_counter=0): headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} - json_data = json.dumps(data) - #adding PK for Max's logs - json_data["pk"]=str(mesg.id) + data['pk']=str(mesg.id) + json_data = json.dumps(data) logging.info('sending data for agent: %s to APPRAISER URL: %s' % (agent_name, APPRAISER_URL)) with tracer.start_as_current_span("get_appraisal") as span: try: