Commit d7a63021 authored by litaolemo's avatar litaolemo

update

parent 5fc29e90
...@@ -34,7 +34,7 @@ if __name__ == "__main__": ...@@ -34,7 +34,7 @@ if __name__ == "__main__":
cursorclass=pymysql.cursors.DictCursor) cursorclass=pymysql.cursors.DictCursor)
zhengxing_cursor = db_zhengxing_eagle.cursor() zhengxing_cursor = db_zhengxing_eagle.cursor()
for count_date in range(0,3): for count_date in range(0,60):
tag_names_list_week = [] tag_names_list_week = []
date = datetime.datetime.now().date() - datetime.timedelta(days=count_date) date = datetime.datetime.now().date() - datetime.timedelta(days=count_date)
print(str(date)) print(str(date))
...@@ -73,6 +73,7 @@ if __name__ == "__main__": ...@@ -73,6 +73,7 @@ if __name__ == "__main__":
db.commit() db.commit()
# print(res) # print(res)
insert_list = [] insert_list = []
print(count)
res = cursor.executemany(insert_sql,insert_list) res = cursor.executemany(insert_sql,insert_list)
db.commit() db.commit()
print(res) print(res)
\ No newline at end of file
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