用户贡献度

This commit is contained in:
crystal20277 2022-09-20 10:33:22 +08:00
parent 47e2843f47
commit 02d1e92cee
2 changed files with 3 additions and 2 deletions

View File

@ -12,9 +12,10 @@ def generate_history_data_by_test():
conn = get_conn()
curs = conn.cursor()
months = [7, 8]
months = [7, 8, 9]
for month in months:
date_list = get_month_date(2022, month)
print(str(date_list))
for date in date_list:
sql = f"""
INSERT INTO

View File

@ -15,7 +15,7 @@ def generate_statistics_data_by_test():
engine = create_engine(f'postgresql+psycopg2://{user}:{passwd}@{host}:{port}/{database}', pool_recycle=3600)
conn = engine.connect()
months = [7, 8]
months = [7, 8, 9]
for month in months:
for date in get_month_date(2022, month):
generate_statistics_data_single(conn, date)