mirror of
https://github.com/adulau/mmdb-server.git
synced 2024-11-07 11:36:24 +00:00
fix: [country_lookup] key can be also 'Unknown'
This commit is contained in:
parent
e95f9dd7cb
commit
d79b3dfbca
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ def pubLookup(value: str) -> bool:
|
||||||
|
|
||||||
|
|
||||||
def countryLookup(country: str) -> dict:
|
def countryLookup(country: str) -> dict:
|
||||||
if country != 'None' or country is not None:
|
if country != 'None' or country is not None or country != 'Unknown':
|
||||||
return country_info[country]
|
return country_info[country]
|
||||||
else:
|
else:
|
||||||
return {}
|
return {}
|
||||||
|
|
Loading…
Reference in a new issue