From 12b9670c1670d9fff54cc775716f123193d32693 Mon Sep 17 00:00:00 2001 From: Mohammad Iqbal Date: Mon, 9 Dec 2024 11:13:15 +0000 Subject: [PATCH] [PRMP-1257] Address code review comments --- lambdas/handlers/manage_nrl_pointer_handler.py | 4 ++-- lambdas/services/nrl_api_service.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lambdas/handlers/manage_nrl_pointer_handler.py b/lambdas/handlers/manage_nrl_pointer_handler.py index 405a1989f..6b37cb9e8 100644 --- a/lambdas/handlers/manage_nrl_pointer_handler.py +++ b/lambdas/handlers/manage_nrl_pointer_handler.py @@ -62,9 +62,9 @@ def lambda_handler(event, context): logger.info( f"Create pointer request: Body: {json.loads(document)}, \n" f"RequestURL: {nrl_api_service.endpoint}, \n" - "HTTPVerb: POST, \n" + "HTTP Verb: POST, \n" f"NHS Number: {nrl_message.nhs_number}, \n" - f"ODS code: {nrl_api_service.end_user_ods_code}, \n" + f"ODS Code: {nrl_api_service.end_user_ods_code}, \n" f"Datetime: {int(datetime.now().timestamp())} " ) nrl_api_service.create_new_pointer(json.loads(document)) diff --git a/lambdas/services/nrl_api_service.py b/lambdas/services/nrl_api_service.py index 5d2b7cf04..5fb1ebb3c 100644 --- a/lambdas/services/nrl_api_service.py +++ b/lambdas/services/nrl_api_service.py @@ -70,7 +70,7 @@ def get_pointer(self, nhs_number, record_type=None, retry_on_expired: bool = Tru logger.info( f"Get pointer request: URL: {self.endpoint}, \n" "HTTP Verb: GET, \n" - f"ODS code: {self.end_user_ods_code}, \n" + f"ODS Code: {self.end_user_ods_code}, \n" f"Datetime: {int(datetime.now().timestamp())}, \n" f"UserID: {self.end_user_ods_code} - {NRL_USER_ID}, \n" ) @@ -111,8 +111,8 @@ def delete_pointer(self, nhs_number, record_type): logger.info( f"Delete pointer request: URL: {url_endpoint}, \n" f"HTTP Verb: DELETE, \n" - f"ODS code: {self.end_user_ods_code}, \n" - f"NHS number: {nhs_number}, \n" + f"ODS Code: {self.end_user_ods_code}, \n" + f"NHS Number: {nhs_number}, \n" f"Datetime: {int(datetime.now().timestamp())}, \n" f"UserID: {self.end_user_ods_code} - {NRL_USER_ID} \n" )