Commit d9f1e5da authored by lixiaofang's avatar lixiaofang

add

parent d5feac15
......@@ -9,11 +9,13 @@ from auto_request import set_reply_to_redis, reply2, login
if __name__ == "__main__":
try:
logging.info("gte --------------------------")
now = datetime.datetime.now().minute
logging.info("gte ---------------minute:%s" % now)
redis_key1 = "cybertron:set_reply_id:one"
redis_client = set_reply_to_redis()
have_reply1 = redis_client.hget(redis_key1, str(now - 5))
if have_reply1:
result = json.loads(str(have_reply1, encoding="utf-8"))
redis_client.hdel(redis_key1, str(now - 5))
if result:
......
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