Commit 5d71c369 authored by 段英荣's avatar 段英荣

modify

parent 3fcaa1fd
......@@ -54,7 +54,7 @@ def home_recommend(session_id="",user_id=-1,offset=0,size=10):
if len(unread_topic_id_list)>0:
redis_dict = {
"unread_topic_id":json.dumps(unread_topic_id_list),
"have_read_topic_id":json.dumps(have_read_topic_id_tuple)
"have_read_topic_id":json.dumps(list(have_read_topic_id_tuple))
}
redis_client.hmset(redis_key,redis_dict)
......@@ -111,7 +111,7 @@ def home_query(session_id="",user_id=-1,query="",offset=0,size=10):
if len(unread_topic_id_list)>0:
redis_dict = {
"unread_topic_id":json.dumps(unread_topic_id_list),
"have_read_topic_id":json.dumps(have_read_topic_id_tuple)
"have_read_topic_id":json.dumps(list(have_read_topic_id_tuple))
}
redis_client.hmset(redis_key,redis_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