Skip to content

Commit 7b92608

Browse files
committed
lint
1 parent 4437a1b commit 7b92608

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lambdas/id_sync/src/ieds_db_operations.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,18 @@ def ieds_update_patient_id(old_id: str, new_id: str) -> dict:
8989
# ✅ Fix: Check each batch response
9090
if response['ResponseMetadata']['HTTPStatusCode'] != 200:
9191
all_batches_successful = False
92-
logger.error(f"Batch {total_batches} failed with status: {response['ResponseMetadata']['HTTPStatusCode']}")
92+
logger.error(
93+
f"Batch {total_batches} failed with status: {response['ResponseMetadata']['HTTPStatusCode']}")
9394

9495
# ✅ Fix: Consolidated response handling outside the loop
95-
logger.info(f"All batches complete. Total batches: {total_batches}, All successful: {all_batches_successful}")
96+
logger.info(
97+
f"All batches complete. Total batches: {total_batches}, All successful: {all_batches_successful}")
9698

9799
if all_batches_successful:
98100
return {
99101
"status": "success",
100-
"message": f"Updated IEDS, patient ID: {old_id} to {new_id}. {len(items_to_update)} items updated in {total_batches} batches."
102+
"message":
103+
f"IEDS update, patient ID: {old_id}=>{new_id}. {len(items_to_update)} updated {total_batches}."
101104
}
102105
else:
103106
return {

0 commit comments

Comments
 (0)