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)