更改引入路径
This commit is contained in:
parent
72da394762
commit
dadf850385
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue