From 84796cc13b1fe3bea80cb561dda5401e146449a5 Mon Sep 17 00:00:00 2001 From: pengtao Date: Thu, 8 Aug 2019 13:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E5=B9=BF=E5=91=8A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=20ad=5Fproperty=20=E4=BD=9C=E4=B8=BAjson?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E5=B9=BF=E5=91=8A=E7=9A=84=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ad_tasks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ad_tasks.py b/ad_tasks.py index 085db25..7f7d9d7 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -88,8 +88,7 @@ def send_cache_data(): if all: # log.info(f"get data was {all}!\n") for line in all: - key = f"ad::{line.get('gameid', 0)}::{line.get('channelid', 0)}::{line.get('area').split(',')[ - 0].strip()}::{line.get('locationid', 0)}" + key = f"ad::{line.get('gameid', 0)}::{line.get('channelid', 0)}::{line.get('area').split(',')[0].strip()}::{line.get('locationid', 0)}" if int(line['ad_num']) > 0: num = my_redis.get(f"ad::{line['id']}::num") if not num: