fix: They updated the channel URL
This commit is contained in:
parent
bfd02fb1be
commit
4af39b1e04
@ -361,8 +361,7 @@ help - Gebe diese Hilfe aus'''
|
||||
log.info('Requesting search channels')
|
||||
req = requests.get(MiscDataSources.channels())
|
||||
channels = json.loads(req.text)
|
||||
self._channels = list(map(lambda key: channels[key].get('NAME', ''),
|
||||
channels.keys()))
|
||||
self._channels = [channels[key].get('NAME', '') for key in channels]
|
||||
|
||||
try:
|
||||
with open(self._channel_file, 'w') as channel_file:
|
||||
|
@ -53,7 +53,7 @@ class MiscDataSources:
|
||||
'''
|
||||
These are the valid names to retrieve warnings for
|
||||
'''
|
||||
return 'https://warnung.bund.de/assets/json/suche_channel.json'
|
||||
return 'https://warnung.bund.de/assets/json/converted_gemeinden.json'
|
||||
|
||||
def sources_from_config(config):
|
||||
sources = []
|
||||
|
Loading…
Reference in New Issue
Block a user