fix: S11 #13, #14 未受領通知年月チェック処理の不備修正

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2024-03-11 14:58:34 +09:00
parent f5d5eda1d7
commit 6f814e83a4

View File

@ -223,8 +223,9 @@ def encise_data_unreceive_check(records: list, execute_month: str) -> tuple[list
is_file_not_exists = False
# 存在したファイルの年月部分を抜き出し、チェック対象年月(処理稼働月-1)である場合
match_group_yyyymm = match_result.group(1)
check_target_yyyymm = (datetime.datetime.now(
ZoneInfo(TZ)) - relativedelta(month=1)).strftime('%Y%m')
today = datetime.datetime.now(ZoneInfo(TZ))
minus_1_month = today + relativedelta(months=-1)
check_target_yyyymm = minus_1_month.strftime('%Y%m')
if match_group_yyyymm == check_target_yyyymm:
logger.info(
f'I-04-04 I/Fファイルの受領を確認しました ファイル名{file_name}')