Commit a840c8d8 authored by lixiaofang's avatar lixiaofang

add

parent 57ca4ec1
......@@ -51,6 +51,7 @@ def get_data(num1, num2):
cursor = pc.cursor()
print(num1)
print(num2)
print("--------")
cursor.execute(
"SELECT id,user_id FROM topic WHERE is_online =1 and (id > " + str(num1) + " and id <= " + str(
num2) + ") and (content_level = 4 or content_level = 5) ")
......@@ -74,7 +75,7 @@ if __name__ == "__main__":
try:
time_list = [[0, 100000], [100000, 200000], [200000, 300000], [300000, 400000], [400000, 500000],[600000, 700000]]
time_list = [[0, 100000], [100000, 200000], [200000, 300000], [300000, 400000], [400000, 500000],[500000, 600000],[600000, 700000]]
user_data = open("user_id.txt", "r")
......@@ -84,7 +85,6 @@ if __name__ == "__main__":
user_list.append(i)
for i in time_list:
topic_id = get_data(i[0], i[1])
dicts = {}
......
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