mirror of
https://github.com/adulau/mmdb-server.git
synced 2024-12-22 08:05: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:
|
||||
if country != 'None' or country is not None or country != 'Unknown':
|
||||
if country in country_info:
|
||||
return country_info[country]
|
||||
else:
|
||||
return {}
|
||||
else:
|
||||
return {}
|
||||
|
||||
|
||||
class GeoLookup:
|
||||
|
|
Loading…
Reference in a new issue