Skip to content

Commit

Permalink
Support empty lists of US locations
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbacon committed May 9, 2019
1 parent 0ab3e21 commit 7c94e90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions clinicaltrials/frontend/management/commands/load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,10 @@ def has_us_loc(locs):
"Puerto Rico",
"Virgin Islands (U.S.)",
]
for us_loc in us_locs:
if us_loc in locs:
return True
if locs:
for us_loc in us_locs:
if us_loc in locs:
return True
return False


Expand Down

0 comments on commit 7c94e90

Please sign in to comment.