Commit 566b330a authored by lixiaofang's avatar lixiaofang

add

parent f9ae99ec
......@@ -23,7 +23,6 @@ def get_data(numtime, numtime2):
"select user_id from user_extra where user_id =" + str(i[0]) + " and is_shadow =0")
data = cursor.fetchall()
user_id = list(data)
print(user_id)
if user_id:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
......@@ -63,8 +62,8 @@ if __name__ == "__main__":
redis_client = set_reply_to_redis()
have_reply = redis_client.get(redis_key1)
if have_reply:
result = json.loads(str(have_reply, encoding="utf-8"))
result = json.loads(str(have_reply, encoding="utf-8"))
if result:
redis_client.set(redis_key2, json.dumps(reply_data_comment))
else:
redis_client.set(redis_key1, 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