From 4f657920a02558092fc0bf1d57a609cdfab730b2 Mon Sep 17 00:00:00 2001 From: wang zhengwei <zhengwei.wang@wizlawgic.com> Date: Thu, 18 Feb 2021 18:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80json=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/report_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/service/report_service.py b/app/service/report_service.py index 52b3c35..32bcfdc 100644 --- a/app/service/report_service.py +++ b/app/service/report_service.py @@ -157,7 +157,8 @@ def edit_report(args): id = args.get('id') type = args.get('type') ifa_id = args.get('ifa_id') - report_data = args.get('report_data') + # report_data = args.get('report_data') + report_data = json.loads(args.get('report_data')) pdf_name = str(uuid.uuid4()) + '.pdf' res = [] with TAMP_SQL(tamp_diagnose_app_engine) as tamp_diagnose_app: -- 2.18.1