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

added function for serialization of None, True, False or Inconclusive

parent 36a3e92a
No related branches found
No related tags found
1 merge request!250Virus visit column changes
...@@ -18,6 +18,16 @@ def bool_to_yes_no_null(val): ...@@ -18,6 +18,16 @@ def bool_to_yes_no_null(val):
else: else:
return "NO" return "NO"
def virus_test_to_str(test, date):
if test is None and date is not None:
return "Inconclusive"
if test is None:
return "N/A"
if test:
return "YES"
else:
return "NO"
def flying_team_to_str(flying_team): def flying_team_to_str(flying_team):
result = "" result = ""
......
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