From 03c9847e8de1f886109dcbb02d7bcf25afcae4e7 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 16 Sep 2019 17:23:01 +0800 Subject: [PATCH] fix --- ad_tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ad_tasks.py b/ad_tasks.py index f4f757b..803f0f9 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -48,12 +48,12 @@ def split_ad_info(localtionid, line): def sadd_adkey(key, line, item): my_redis.sadd(key, line['id']) - my_redis.expire(key, 60*60) + my_redis.expire(key, 60*2) info_key = f"adinfo::{line['id']}::info" new_line = split_ad_info(item, line) if new_line: my_redis.hmset(info_key, new_line) - my_redis.expire(info_key, 60 * 60) + my_redis.expire(info_key, 60 * 2) else: log.error(f"split adinfo about locationid failed! localtionid={item} ")