Commit 5d7975f5 authored by lixiaofang's avatar lixiaofang

add

parent a2181456
...@@ -59,9 +59,9 @@ if __name__ == "__main__": ...@@ -59,9 +59,9 @@ if __name__ == "__main__":
data_dict = json.loads(response) data_dict = json.loads(response)
reply_id = data_dict["data"]["id"] reply_id = data_dict["data"]["id"]
reply_user_id = data_dict["data"]["user"]["id"] reply_user_id = data_dict["data"]["user"]["id"]
logging.info("get topic_id:%s" % i[1]) topic_id = i[1]
reply_data_comment.append( reply_data_comment.append(
{"id": reply_id, "reply_user_id": reply_user_id, "answer": comment2, "topic_id": i[1]}) {"id": reply_id, "reply_user_id": reply_user_id, "answer": comment2, "topic_id": topic_id})
redis_client = set_reply_to_redis() redis_client = set_reply_to_redis()
redis_client.hset(redis_key1, str(minute), json.dumps(reply_data_comment)) redis_client.hset(redis_key1, str(minute), json.dumps(reply_data_comment))
......
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