mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-27 05:21:10 -05:00
NuWeather: remove forecast=Y filter for WWIS
This commit is contained in:
parent
8f5f675d65
commit
48c6f2422b
@ -277,9 +277,8 @@ class NuWeather(callbacks.Plugin):
|
|||||||
if not isinstance(member_info, dict):
|
if not isinstance(member_info, dict):
|
||||||
continue
|
continue
|
||||||
for city in member_info['city']:
|
for city in member_info['city']:
|
||||||
if city['forecast'] == 'Y':
|
lat, lon = float(city['cityLatitude']), float(city['cityLongitude'])
|
||||||
lat, lon = float(city['cityLatitude']), float(city['cityLongitude'])
|
self._wwis_cities[(lat, lon)] = city['cityId']
|
||||||
self._wwis_cities[(lat, lon)] = city['cityId']
|
|
||||||
|
|
||||||
def _wwis_get_closest_city(self, location, geobackend=None):
|
def _wwis_get_closest_city(self, location, geobackend=None):
|
||||||
# WWIS equivalent of geocode - finding the closest major city
|
# WWIS equivalent of geocode - finding the closest major city
|
||||||
|
Loading…
x
Reference in New Issue
Block a user