From dadf850385e65ee6cfd1a6fcff53c49bac490f6e Mon Sep 17 00:00:00 2001 From: crystal20277 Date: Wed, 8 Feb 2023 10:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=BC=95=E5=85=A5=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project_evaluation_analysis/generate_history_data.py | 4 ++-- project_evaluation_analysis/generate_statistics_data.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project_evaluation_analysis/generate_history_data.py b/project_evaluation_analysis/generate_history_data.py index e5f2a35..1bf26be 100644 --- a/project_evaluation_analysis/generate_history_data.py +++ b/project_evaluation_analysis/generate_history_data.py @@ -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 diff --git a/project_evaluation_analysis/generate_statistics_data.py b/project_evaluation_analysis/generate_statistics_data.py index 54d292d..c085bcf 100644 --- a/project_evaluation_analysis/generate_statistics_data.py +++ b/project_evaluation_analysis/generate_statistics_data.py @@ -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)