mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-13 23:07:21 +02:00
[core] fix StatusData inheritance
This commit is contained in:
parent
9304919c95
commit
5e7b044d13
1 changed files with 9 additions and 7 deletions
|
@ -63,7 +63,8 @@ class StatusData(BaseObject):
|
|||
"""
|
||||
dateTimeFormatting = '%Y-%m-%d %H:%M:%S.%f'
|
||||
|
||||
def __init__(self, nodeName='', nodeType='', packageName='', packageVersion=''):
|
||||
def __init__(self, nodeName='', nodeType='', packageName='', packageVersion='', parent=None):
|
||||
super(StatusData, self).__init__(parent)
|
||||
self.status = Status.NONE
|
||||
self.execMode = ExecMode.NONE
|
||||
self.nodeName = nodeName
|
||||
|
@ -113,6 +114,7 @@ class StatusData(BaseObject):
|
|||
|
||||
def toDict(self):
|
||||
d = self.__dict__.copy()
|
||||
d.pop('destroyed', None) # skip non data attributes from BaseObject
|
||||
d["elapsedTimeStr"] = self.elapsedTimeStr
|
||||
return d
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue