From c76c62af9d349c89d0f25714ffe9bae2266258a3 Mon Sep 17 00:00:00 2001 From: jhadfield-NHS Date: Thu, 5 Feb 2026 11:25:58 +0000 Subject: [PATCH] Update app.py Bugfix default return to move to correct level and strip param separator if present --- sandbox/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sandbox/app.py b/sandbox/app.py index 224d797..0b835ee 100644 --- a/sandbox/app.py +++ b/sandbox/app.py @@ -167,8 +167,8 @@ def get_prism_prompt_for_example(patient_examples: dict, request: Request) -> st for patient_id, example in sorted_examples: if patient_id in request.full_path: return example - if request.full_path.find("patient-check/") > -1: - return "example_" + request.full_path[request.full_path.find("patient-check/")+14:] + if request.full_path.find("patient-check/") > -1: + return ("example_" + request.full_path[request.full_path.find("patient-check/")+14:]).rstrip("?") return None