Commit 2b36bf79 authored by lixiaofang's avatar lixiaofang

add

parent 930ee89a
...@@ -10,6 +10,9 @@ def reply_comment1(): ...@@ -10,6 +10,9 @@ def reply_comment1():
redis_key1 = "cybertron:set_reply_id:one" redis_key1 = "cybertron:set_reply_id:one"
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)
if have_reply1 == None:
pass
else:
result = json.loads(str(have_reply1, encoding="utf-8")) result = json.loads(str(have_reply1, encoding="utf-8"))
if result: if result:
for item in result: for item in result:
......
...@@ -10,6 +10,9 @@ def reply_comment2(): ...@@ -10,6 +10,9 @@ def reply_comment2():
redis_key1 = "cybertron:set_reply_id:two" redis_key1 = "cybertron:set_reply_id:two"
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)
if have_reply1 == None:
pass
else:
result = json.loads(str(have_reply1, encoding="utf-8")) result = json.loads(str(have_reply1, encoding="utf-8"))
if result: if result:
for item in result: for item in result:
......
...@@ -10,6 +10,9 @@ def reply_comment3(): ...@@ -10,6 +10,9 @@ def reply_comment3():
redis_key1 = "cybertron:set_reply_id:three" redis_key1 = "cybertron:set_reply_id:three"
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)
if have_reply1 == None:
pass
else:
result = json.loads(str(have_reply1, encoding="utf-8")) result = json.loads(str(have_reply1, encoding="utf-8"))
if result: if result:
for item in result: for item in result:
......
...@@ -10,6 +10,9 @@ def reply_comment5(): ...@@ -10,6 +10,9 @@ def reply_comment5():
redis_key1 = "cybertron:set_reply_id:five" redis_key1 = "cybertron:set_reply_id:five"
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)
if have_reply1 == None:
pass
else:
result = json.loads(str(have_reply1, encoding="utf-8")) result = json.loads(str(have_reply1, encoding="utf-8"))
if result: if result:
for item in result: for item in result:
......
...@@ -10,6 +10,9 @@ def reply_comment7(): ...@@ -10,6 +10,9 @@ def reply_comment7():
redis_key1 = "cybertron:set_reply_id:seven" redis_key1 = "cybertron:set_reply_id:seven"
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)
if have_reply1 == None:
pass
else:
result = json.loads(str(have_reply1, encoding="utf-8")) result = json.loads(str(have_reply1, encoding="utf-8"))
if result: if result:
for item in 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