From 3066ee0169fd43be6ae158bf6d6a63fa0807fc77 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 17 Sep 2019 11:54:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4location=20area=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ad_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ad_tasks.py b/ad_tasks.py index 11cd95d..5ac8885 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -176,7 +176,7 @@ def send_cache_data(): area_all = get_area_by_locationid(locationid) print(f"area={area_all}") for area in area_all.split(','): - key = f"ad::{line.get('gameid', 0)}_{locationid}::{line.get('channelid', 0)}::{area}::{locationid}" + key = f"ad::{gameid}_{locationid}::{channelid}::{area}::{locationid}" if my_redis.sismember(key, id): my_redis.srem(key, id) my_redis.expire(f"ad::{id}::info", 1)