forked from edward/owl-map
Update
This commit is contained in:
parent
47e1280269
commit
c607351699
7 changed files with 274 additions and 69 deletions
|
|
@ -83,8 +83,8 @@ def get_hit_name(hit):
|
|||
if len(address) == 1:
|
||||
return n1
|
||||
|
||||
country = address.pop("country")
|
||||
country_code = address.pop("country_code")
|
||||
country = address.pop("country", None)
|
||||
country_code = address.pop("country_code", None)
|
||||
if country_code:
|
||||
country_code == country_code.lower()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue