Skip to content

Commit

Permalink
ensured that #462 still works if a user adds an entry in Other/commen…
Browse files Browse the repository at this point in the history
…t (failed on attempt to split on semicolon that didn't exist)
  • Loading branch information
carlhiggs committed Sep 23, 2024
1 parent 48450af commit 63f9645
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion process/subprocesses/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,14 @@ def get_policy_checklist_item(
levels = policy_review_setting[item].split('\n')
levels = [
phrases[level[0].strip()].strip()
for level in [x.split(': ') for x in levels]
for level in [
x.split(': ')
for x in levels
if not (
x.startswith('Other / comments')
or x.startswith('(Please indicate')
)
]
if str(level[1]).strip()
not in ['No', 'missing', 'nan', 'None', 'N/A', '']
]
Expand Down

0 comments on commit 63f9645

Please sign in to comment.