From 1dc59aa3feb483975dc1795f9e2e3aa47390c148 Mon Sep 17 00:00:00 2001 From: Paul Bugni Date: Tue, 7 Jan 2025 15:12:29 -0800 Subject: [PATCH] no change code warning clean up. --- isacc_messaging/api/isacc_record_creator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/isacc_messaging/api/isacc_record_creator.py b/isacc_messaging/api/isacc_record_creator.py index dbc8803..162d11f 100644 --- a/isacc_messaging/api/isacc_record_creator.py +++ b/isacc_messaging/api/isacc_record_creator.py @@ -348,11 +348,9 @@ def execute_requests(self) -> Tuple[List[dict], List[dict]]: if not patient.active or cr.occurrenceDateTime.date < cutoff: cr.status = "revoked" cr.persist() - revoked_reason = "" + revoked_reason = "Past the cutoff" if not patient.active: revoked_reason = "Recipient is not active" - else: - revoked_reason = "Past the cutoff" cr.report_cr_status(status_reason=revoked_reason) errors.append({'id': cr.id, 'error': revoked_reason}) patient.mark_next_outgoing() # update given state change