Skip to content

Commit

Permalink
Merge branch 'main' into jeremy/issue-161-radiology
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmlft authored Jan 12, 2024
2 parents 41c2371 + e110e0a commit 4f4d89a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pixl_ehr/src/pixl_ehr/_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ def _replace_placeholders_and_populate_values(self, context: dict) -> None:
if ":" not in line and "${{" not in line:
continue

new_line = line
for key, value in context.items():
new_line = line.replace("${{ " + str(key) + " }}", str(value))
new_line = new_line.replace("${{ " + str(key) + " }}", str(value))

n = new_line.count(f":{key}")
self.values += n * [value]
Expand Down

0 comments on commit 4f4d89a

Please sign in to comment.