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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user