Commit 6e5b6d60 authored by lixiaofang's avatar lixiaofang

add

parent c4e8c348
......@@ -17,6 +17,7 @@ def get_data(numtime):
data = cursor.fetchall()
topic_id = list(data)
topic_id_list = []
if topic_id:
for i in topic_id:
cursor.execute(
"select user_id from user_extra where user_id =" + str(i[0]) + " and is_shadow =0")
......@@ -46,6 +47,8 @@ if __name__ == "__main__":
dicts = {}
if user_id:
for i in user_id:
if i[0] not in dicts.keys():
......
......@@ -18,6 +18,7 @@ def get_star_user_id(numtime):
"SELECT user_id,id FROM topic WHERE is_online=1 and (content_level =4 or content_level =5) and create_time LIKE '%%%%%s%%%%' " % numtime)
data = cursor.fetchall()
user_id_list = list(data)
logging.info("Database version : %s " % user_id_list)
topic_id_list = []
if user_id_list:
for i in user_id_list:
......
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