Commit c647e37d authored by 黄凯's avatar 黄凯

Merge branch 'hk' into 'test'

update

See merge request alpha/physical!314
parents a2b93490 9da83728
...@@ -90,7 +90,7 @@ class CollectData(object): ...@@ -90,7 +90,7 @@ class CollectData(object):
click_recommend_redis_key = self.click_recommend_redis_key_prefix + str(device_id) click_recommend_redis_key = self.click_recommend_redis_key_prefix + str(device_id)
click_redis_data_dict = { click_redis_data_dict = {
"data": json.dumps(recommend_topic_id_list), "data": json.dumps(recommend_topic_id_list),
"datadict":json.dumps(str(recommend_topic_id_list_dict)), "datadict":json.dumps(recommend_topic_id_list_dict),
"cursor": 0 "cursor": 0
} }
redis_client.hmset(click_recommend_redis_key, click_redis_data_dict) redis_client.hmset(click_recommend_redis_key, click_redis_data_dict)
...@@ -122,7 +122,7 @@ class CollectData(object): ...@@ -122,7 +122,7 @@ class CollectData(object):
tag_topic_dict = recommend_topic_id_list_dict.update(tag_topic_dict) tag_topic_dict = recommend_topic_id_list_dict.update(tag_topic_dict)
redis_data_dict = { redis_data_dict = {
"data": json.dumps(tag_topic_id_list), "data": json.dumps(tag_topic_id_list),
"datadict":json.dumps(str(tag_topic_dict)), "datadict":json.dumps(tag_topic_dict),
"cursor":0 "cursor":0
} }
redis_client.hmset(topic_recommend_redis_key,redis_data_dict) redis_client.hmset(topic_recommend_redis_key,redis_data_dict)
......
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