Merge "correctly unnest channel config"
This commit is contained in:
commit
314adc30e3
@ -224,11 +224,12 @@ class MessageConfig(dict):
|
|||||||
|
|
||||||
class ChannelConfig(object):
|
class ChannelConfig(object):
|
||||||
def __init__(self, data):
|
def __init__(self, data):
|
||||||
self.data = data
|
|
||||||
# for compatibility reasons we support a pre channel hierarchy
|
# for compatibility reasons we support a pre channel hierarchy
|
||||||
# model of the world.
|
# model of the world.
|
||||||
if 'channels' in data:
|
if 'channels' in data:
|
||||||
self.data = data['channels']
|
data = data['channels']
|
||||||
|
|
||||||
|
self.data = data
|
||||||
|
|
||||||
keys = data.keys()
|
keys = data.keys()
|
||||||
for key in keys:
|
for key in keys:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user