From 02d1e92cee6ebdde9f7efaf3782cc4febe136131 Mon Sep 17 00:00:00 2001 From: crystal20277 Date: Tue, 20 Sep 2022 10:33:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=B4=A1=E7=8C=AE=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project_evaluation_analysis/generate_history_data.py | 3 ++- project_evaluation_analysis/generate_statistics_data.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/project_evaluation_analysis/generate_history_data.py b/project_evaluation_analysis/generate_history_data.py index 6d3476c..da9e70e 100644 --- a/project_evaluation_analysis/generate_history_data.py +++ b/project_evaluation_analysis/generate_history_data.py @@ -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 diff --git a/project_evaluation_analysis/generate_statistics_data.py b/project_evaluation_analysis/generate_statistics_data.py index a63291f..760b047 100644 --- a/project_evaluation_analysis/generate_statistics_data.py +++ b/project_evaluation_analysis/generate_statistics_data.py @@ -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)