Skip to content

Commit c76c62a

Browse files
Update app.py
Bugfix default return to move to correct level and strip param separator if present
1 parent 60a0f21 commit c76c62a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sandbox/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ def get_prism_prompt_for_example(patient_examples: dict, request: Request) -> st
167167
for patient_id, example in sorted_examples:
168168
if patient_id in request.full_path:
169169
return example
170-
if request.full_path.find("patient-check/") > -1:
171-
return "example_" + request.full_path[request.full_path.find("patient-check/")+14:]
170+
if request.full_path.find("patient-check/") > -1:
171+
return ("example_" + request.full_path[request.full_path.find("patient-check/")+14:]).rstrip("?")
172172
return None
173173

174174

0 commit comments

Comments
 (0)