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