GenericProfileObject value: make embedded buffer items also appear as dicts
This commit is contained in:
parent
c2dea29c83
commit
94447c3571
@ -145,8 +145,8 @@ class ProfileGenericObject(DSMRObject):
|
|||||||
list = [['buffer_length', self.buffer_length]]
|
list = [['buffer_length', self.buffer_length]]
|
||||||
list.append(['buffer_type', self.buffer_type])
|
list.append(['buffer_type', self.buffer_type])
|
||||||
buffer_repr = [
|
buffer_repr = [
|
||||||
(['datetime', buffer_item.datetime],
|
dict([['datetime', buffer_item.datetime],
|
||||||
['value', buffer_item.value])
|
['value', buffer_item.value]])
|
||||||
for buffer_item in self.buffer
|
for buffer_item in self.buffer
|
||||||
]
|
]
|
||||||
list.append(['buffer', buffer_repr])
|
list.append(['buffer', buffer_repr])
|
||||||
|
Loading…
Reference in New Issue
Block a user