Commit 7e4c7121 authored by 段英荣's avatar 段英荣

Merge branch 'redis_reply' into 'master'

add

See merge request alpha/physical!490
parents 672f78f6 2b36bf79
......@@ -10,6 +10,9 @@ def reply_comment1():
redis_key1 = "cybertron:set_reply_id:one"
redis_client = set_reply_to_redis()
have_reply1 = redis_client.get(redis_key1)
if have_reply1 == None:
pass
else:
result = json.loads(str(have_reply1, encoding="utf-8"))
if result:
for item in result:
......
......@@ -10,6 +10,9 @@ def reply_comment2():
redis_key1 = "cybertron:set_reply_id:two"
redis_client = set_reply_to_redis()
have_reply1 = redis_client.get(redis_key1)
if have_reply1 == None:
pass
else:
result = json.loads(str(have_reply1, encoding="utf-8"))
if result:
for item in result:
......
......@@ -10,6 +10,9 @@ def reply_comment3():
redis_key1 = "cybertron:set_reply_id:three"
redis_client = set_reply_to_redis()
have_reply1 = redis_client.get(redis_key1)
if have_reply1 == None:
pass
else:
result = json.loads(str(have_reply1, encoding="utf-8"))
if result:
for item in result:
......
......@@ -10,6 +10,9 @@ def reply_comment5():
redis_key1 = "cybertron:set_reply_id:five"
redis_client = set_reply_to_redis()
have_reply1 = redis_client.get(redis_key1)
if have_reply1 == None:
pass
else:
result = json.loads(str(have_reply1, encoding="utf-8"))
if result:
for item in result:
......
......@@ -10,6 +10,9 @@ def reply_comment7():
redis_key1 = "cybertron:set_reply_id:seven"
redis_client = set_reply_to_redis()
have_reply1 = redis_client.get(redis_key1)
if have_reply1 == None:
pass
else:
result = json.loads(str(have_reply1, encoding="utf-8"))
if result:
for item in 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