mirror of
https://github.com/adulau/mmdb-server.git
synced 2024-12-21 23:55:57 +00:00
chg: [country_lookup] skip Unknown countries
This commit is contained in:
parent
d79b3dfbca
commit
d20b90393f
1 changed files with 4 additions and 1 deletions
|
@ -62,7 +62,10 @@ def pubLookup(value: str) -> bool:
|
|||
|
||||
def countryLookup(country: str) -> dict:
|
||||
if country != 'None' or country is not None or country != 'Unknown':
|
||||
return country_info[country]
|
||||
if country in country_info:
|
||||
return country_info[country]
|
||||
else:
|
||||
return {}
|
||||
else:
|
||||
return {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue