Commit 23d7eb8b authored by 段英荣's avatar 段英荣

modify

parent 5b5d7eb0
......@@ -59,7 +59,7 @@ class CollectData(object):
logging.info("duan add,device_id:%s,recommend_tag_list:%s" % (str(device_id), str(recommend_tag_list)))
if len(recommend_tag_dict) > 0:
tag_recommend_redis_key = self.linucb_recommend_redis_prefix + str(device_id)
redis_client.set(tag_recommend_redis_key, json.dumps(recommend_tag_dict.keys()))
redis_client.set(tag_recommend_redis_key, json.dumps(list(recommend_tag_dict.keys())))
# Todo:设置过期时间,调研set是否支持
redis_client.expire(tag_recommend_redis_key, 7*24*60*60)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment