From bfb502f1abe35c87fd8e30265b870ae5a7404f0e Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 20 Aug 2019 15:00:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8Aad=20=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ad_tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ad_tasks.py b/ad_tasks.py index 114eb73..a653ca5 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -103,9 +103,10 @@ def send_cache_data(): # if not item.get('ad_property', {}): # item['ad_property']={}.update(temp) # else: - # item['ad_property'] = json.loads(item.get('ad_property', {})).update(temp) + # item['ad_property'] = json.loads(item.get('ad_property', {}).replace("'",'"')) + # item['ad_property'].update(temp) # print(f"item['ad_property']={item['ad_property']}") - # item['ad_property']=json.dumps(item['ad_property']) + # #item['ad_property']=json.dumps(item['ad_property']) # print(f"1={item}") # except Exception: # log.error(f"write {item}",exc_info=True)