Skip to content

Commit 5b9e69a

Browse files
committed
fixed typo and conditional
1 parent cbc7894 commit 5b9e69a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

claims_hosp/delphi_claims_hosp/get_latest_claims_name.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def get_latest_filename(dir_path, logger, issue_date=None):
2323
if timestamp <= current_date:
2424
latest_timestamp = timestamp
2525
latest_filename = file
26-
27-
assert current_date.date() == latest_timestamp.date(), "no drop for today"
26+
if issue_date is None:
27+
assert current_date.date() == latest_timestamp.date(), "no drop for today"
2828

2929
logger.info("Latest claims file", filename=latest_filename)
3030

claims_hosp/delphi_claims_hosp/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def patch():
6262
params["patch"]["current_issue"] = current_issue.strftime("%Y-%m-%d")
6363

6464
current_issue_yyyymmdd = current_issue.strftime("%Y%m%d")
65-
current_issue_dir = f"""{params["patch"]["patch_dir"]}/issue_{current_issue_yyyymmdd}/doctor-visits"""
65+
current_issue_dir = f"""{params["patch"]["patch_dir"]}/issue_{current_issue_yyyymmdd}/hospital-admissions"""
6666
makedirs(f"{current_issue_dir}", exist_ok=True)
6767
params["common"]["export_dir"] = f"""{current_issue_dir}"""
6868

0 commit comments

Comments
 (0)