Merged in hotfix/code-description-handling (pull request #416)

Hotfix/code description handling

* Update date formatting in prompts to YYYY/MM/DD

* fix tests for new date formatting

* Enhance code parsing to support comma-separated values in get_code_description function

* Merged main into hotfix/code-description-handling


Approved-by: Katon Minhas
This commit is contained in:
Alex Galarce
2025-02-25 20:16:21 +00:00
parent 1e2b96029e
commit 6d6839dcd4
@@ -240,6 +240,10 @@ def get_code_description(code, code_mapping):
return "N/A"
elif "[" in code and "]" in code:
code_list = ast.literal_eval(code)
elif "," in code:
code_list = code.split(",")
else:
code_list = [code]
elif isinstance(code, list):
code_list = code
else: