Skip to content

Commit

Permalink
no change code warning clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbugni committed Jan 7, 2025
1 parent cc8ba93 commit 1dc59aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions isacc_messaging/api/isacc_record_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1dc59aa

Please sign in to comment.