mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 04:51:08 -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):
|
||||
continue
|
||||
for city in member_info['city']:
|
||||
if city['forecast'] == 'Y':
|
||||
lat, lon = float(city['cityLatitude']), float(city['cityLongitude'])
|
||||
self._wwis_cities[(lat, lon)] = city['cityId']
|
||||
lat, lon = float(city['cityLatitude']), float(city['cityLongitude'])
|
||||
self._wwis_cities[(lat, lon)] = city['cityId']
|
||||
|
||||
def _wwis_get_closest_city(self, location, geobackend=None):
|
||||
# WWIS equivalent of geocode - finding the closest major city
|
||||
|
Loading…
x
Reference in New Issue
Block a user