Commit 77899287 authored by lixiaofang's avatar lixiaofang

add

parent 8c673fe3
......@@ -19,7 +19,7 @@ def get_star_useid(numtime):
data = cursor.fetchall()
user_id = list(data)
topic_id_list = []
for i in user_id:
for i in user_id and user_id:
cursor.execute(
"select user_id from user_extra where user_id =" + str(i[0]) + " and is_shadow =0 ")
data = cursor.fetchall()
......@@ -46,7 +46,7 @@ if __name__ == "__main__":
user_id = get_star_useid(numtime)
for j in user_id:
for j in user_id and user_id:
id = int(j[0])
......
......@@ -21,7 +21,7 @@ def get_data(numtime):
user_id = list(data)
topic_id_list = []
for i in user_id:
for i in user_id and user_id:
cursor.execute(
"select user_id from user_extra where user_id =" + str(i[0]) + " and is_shadow =0 ")
data = cursor.fetchall()
......@@ -54,7 +54,7 @@ if __name__ == "__main__":
for i in range(urge_num):
for j in user_id:
for j in user_id and user_id:
id = int(j[0])
......
......@@ -22,7 +22,7 @@ def get_data(numtime):
data = cursor.fetchall()
user_id = list(data)
topic_id_list = []
for i in user_id:
for i in user_id and user_id:
cursor.execute(
"select user_id from user_extra where user_id =" + str(i[0]) + " and is_shadow =0 ")
data = cursor.fetchall()
......@@ -50,7 +50,7 @@ if __name__ == "__main__":
for j in range(2):
for i in user_id:
for i in user_id and user_id:
time.sleep(random.randint(10, 15))
......
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