更改引入路径

This commit is contained in:
crystal20277 2023-02-08 10:20:08 +08:00
parent 72da394762
commit dadf850385
2 changed files with 4 additions and 4 deletions

View File

@ -18,9 +18,9 @@ def generate_history_data_by_test():
conn = get_conn()
curs = conn.cursor()
months = [10, 11]
months = [1]
for month in months:
date_list = get_month_date(2022, month)
date_list = get_month_date(2023, month)
for date in date_list:
sql = f"""
INSERT INTO

View File

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