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' +# )