parse channels config as a list
parent
0eb99184b0
commit
843c94ef96
|
@ -11,6 +11,7 @@ import yaml
|
|||
|
||||
import Murmur
|
||||
|
||||
|
||||
CONFIG_SEARCH_PATH = [".", "/etc"]
|
||||
CONFIG_DEFAULT_NAME = "mice.yml"
|
||||
|
||||
|
@ -271,7 +272,7 @@ class Config:
|
|||
|
||||
def parse_channels(self) -> Channel:
|
||||
channels = []
|
||||
for channel_dict in self._data["channels"]:
|
||||
for channel_dict in self._data:
|
||||
channel = Channel.from_dict(channel_dict)
|
||||
channels.append(channel)
|
||||
|
||||
|
|
Loading…
Reference in New Issue