Commit 2cd6709d authored by lixiaofang's avatar lixiaofang

add

parent df36c9ae
...@@ -13,10 +13,9 @@ if __name__ == "__main__": ...@@ -13,10 +13,9 @@ if __name__ == "__main__":
redis_client = set_reply_to_redis() redis_client = set_reply_to_redis()
have_reply1 = redis_client.get(redis_key1) have_reply1 = redis_client.get(redis_key1)
logging.info("get========have_replys1:%s"%have_reply1)
if have_reply1:
result = json.loads(str(have_reply1, encoding="utf-8")) result = json.loads(str(have_reply1, encoding="utf-8"))
logging.info("get------have_replys1:%s" % have_reply1) logging.info("get------have_replys1:%s" % have_reply1)
if result:
for item in result: for item in result:
cook = login() cook = login()
reply2(cook, item["topic_id"], item["answer"], item["id"]) reply2(cook, item["topic_id"], item["answer"], item["id"])
......
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