mirror of
https://github.com/adulau/mmdb-server.git
synced 2024-12-22 16:15: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,9 +62,12 @@ def pubLookup(value: str) -> bool:
|
||||||
|
|
||||||
def countryLookup(country: str) -> dict:
|
def countryLookup(country: str) -> dict:
|
||||||
if country != 'None' or country is not None or country != 'Unknown':
|
if country != 'None' or country is not None or country != 'Unknown':
|
||||||
|
if country in country_info:
|
||||||
return country_info[country]
|
return country_info[country]
|
||||||
else:
|
else:
|
||||||
return {}
|
return {}
|
||||||
|
else:
|
||||||
|
return {}
|
||||||
|
|
||||||
|
|
||||||
class GeoLookup:
|
class GeoLookup:
|
||||||
|
|
Loading…
Reference in a new issue