Commit 37857c8c authored by lixiaofang's avatar lixiaofang

add

parent cd90e047
This diff is collapsed.
......@@ -41,9 +41,6 @@ if __name__ == "__main__":
time_list = [1, 2, 3, 4, 5, 6, 7]
for i in time_list:
print(i)
numtime, numtime2 = time_convs(i + 1, i - 1)
user_id = get_data(numtime, numtime2)
dicts = {}
......
......@@ -12,7 +12,7 @@ from auto_request import host, user, port, db, passwd
def get_topic_new_user(numtime1, numtime2):
try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor()
cursor.execute(
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time > '%s' " % numtime1)
......
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