[ci skip] fix assumption of 'en' in response

pull/19/head
lalanza808 11 months ago
parent faffabceb4
commit ae45db9b5b

@ -37,6 +37,7 @@ def nodes():
geo = get_geoip(host) geo = get_geoip(host)
geostr = 'geoip{{latitude="{lat}", longitude="{lon}", country_code="{country_code}", country_name="{country_name}", status="{status}"}} 1' geostr = 'geoip{{latitude="{lat}", longitude="{lon}", country_code="{country_code}", country_name="{country_name}", status="{status}"}} 1'
if geostr not in peers: if geostr not in peers:
if 'en' in geo.continent.names:
peers.append(geostr.format( peers.append(geostr.format(
lat=geo.location.latitude, lat=geo.location.latitude,
lon=geo.location.longitude, lon=geo.location.longitude,

Loading…
Cancel
Save