From 7a86e834dcd5468474612abc6507c9cf5a9b9577 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Fri, 27 Jan 2023 17:58:29 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=AD=E3=83=BC=E3=82=AB=E3=83=AB?= =?UTF-8?q?=E3=81=A7=E5=AE=9F=E8=A1=8C=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E5=AE=9F=E8=A1=8C=E7=94=A8=E3=82=B3=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=82=92=E8=BF=BD=E5=8A=A0=E3=80=82=E6=99=AE=E6=AE=B5?= =?UTF-8?q?=E3=81=AF=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=82=A2=E3=82=A6?= =?UTF-8?q?=E3=83=88=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/dataimport/dataimport/chk.py | 13 +++++++++++++ ecs/dataimport/dataimport/end.py | 2 +- ecs/dataimport/dataimport/ini.py | 12 ++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ecs/dataimport/dataimport/chk.py b/ecs/dataimport/dataimport/chk.py index 987a54b0..f6bb97c6 100644 --- a/ecs/dataimport/dataimport/chk.py +++ b/ecs/dataimport/dataimport/chk.py @@ -145,3 +145,16 @@ def is_empty_file(work_csv_row: list, settings_list: list): return len(work_csv_row[1:]) == 0 return len(work_csv_row) == 0 + + +# ローカル実行用コード +# 値はよしなに変えてください +# if __name__ == '__main__': +# check( +# bucket_name='バケット名', +# target_data_source='データソース名', +# target_file_name='targetフォルダ内のファイル名', +# settings_key='個別設定ファイル名', +# log_info='Info', +# mode='i' +# ) diff --git a/ecs/dataimport/dataimport/end.py b/ecs/dataimport/dataimport/end.py index 3b31c56b..dce8747c 100644 --- a/ecs/dataimport/dataimport/end.py +++ b/ecs/dataimport/dataimport/end.py @@ -86,7 +86,7 @@ def end(bucket_name, target_data_source, target_file_name, warning_info, log_inf error(bucket_name, target_data_source, target_file_name, log_info) -# テスト用コード +# ローカル実行用コード # 値はよしなに変えてください # if __name__ == '__main__': # end( diff --git a/ecs/dataimport/dataimport/ini.py b/ecs/dataimport/dataimport/ini.py index 098e2b2f..0d77ca10 100644 --- a/ecs/dataimport/dataimport/ini.py +++ b/ecs/dataimport/dataimport/ini.py @@ -155,3 +155,15 @@ def init(bucket_name, target_key, target_data_source, target_file_name, log_info except Exception as e: print(f'{datetime.now():%Y-%m-%d %H:%M:%S} {log_info} {LOG_LEVEL["e"]} E-INI-99 - エラー内容:{e}') error(bucket_name, target_data_source, target_file_name, log_info) + +# ローカル実行用コード +# 値はよしなに変えてください +# if __name__ == '__main__': +# init( +# bucket_name='バケット名', +# target_key='データソース名/target/ファイル名', +# target_data_source='データソース名', +# target_file_name='ファイル名', +# log_info='Info', +# mode='i' +# )