Skip to content

Commit

Permalink
fix(developmentStage): add more enum values (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
giangbui authored Oct 12, 2020
1 parent f2bab8b commit ed63f65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions covid19-etl/etl/vac_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ def parse_node(self, node):
if key == "developmentStage":
if value.lower() in ["preclinical", "pre-clinical"]:
value = "Preclinical Phase"
elif value not in ["Preclinical Phase", "Clinical", "Withdrawn", None]:
value = "Other"

if gen3_field_type == list:
value = [str(v) for v in value]
clinical_trial[gen3_field] = value
Expand Down

0 comments on commit ed63f65

Please sign in to comment.