diff --git a/ds-caselaw-ingester/lambda_function.py b/ds-caselaw-ingester/lambda_function.py index d1733e7..62f86eb 100644 --- a/ds-caselaw-ingester/lambda_function.py +++ b/ds-caselaw-ingester/lambda_function.py @@ -474,10 +474,7 @@ def send_updated_judgment_notification(self) -> None: print(f'Sent update notification to {os.getenv("NOTIFY_EDITORIAL_ADDRESS")} (Message ID: {response["id"]})') def send_new_judgment_notification(self) -> None: - if "/press-summary/" in self.uri: - doctype = "Press Summary" - else: - doctype = "Judgment" + doctype = "Press Summary" if "/press-summary/" in self.uri else "Judgment" personalisation = personalise_email(self.uri, self.metadata) personalisation["doctype"] = doctype