Skip to content
Snippets Groups Projects
Commit 1f9728c2 authored by Carlos Vega's avatar Carlos Vega
Browse files

added str_to_yes_no_null

parent 269bb603
No related branches found
No related tags found
1 merge request!265Resolve "configurable study fields"
......@@ -25,6 +25,14 @@ def str_to_yes_no(val: str):
else:
return "NO"
def str_to_yes_no_null(val: str):
if val is None:
return None
if val.lower() == 'true':
return "YES"
else:
return "NO"
def virus_test_to_str(test, date):
if test is None and date is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment