Commit 01320802 authored by lixiaofang's avatar lixiaofang

a

parent 49fe5e4b
......@@ -20,11 +20,11 @@ def get_data(numtime,numtime2):
topic_id_list = []
try:
for i in topic_id and topic_id:
print(topic_id)
cursor.execute(
"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)
......@@ -57,12 +57,7 @@ if __name__ == "__main__":
try:
numtime1,numtime2 = time_conv(15, 5)
print(numtime1)
user_id = get_data(numtime1,numtime2)
print(user_id)
dicts = {}
if user_id:
......
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