Add uuid on category
This commit is contained in:
parent
0bdae5c0f4
commit
87622d7cd3
1 changed files with 3 additions and 0 deletions
|
@ -316,17 +316,20 @@ class Contributor(object):
|
|||
class Category(object):
|
||||
|
||||
def __init__(self):
|
||||
self.uuid=None
|
||||
self.name=None
|
||||
self.color=None
|
||||
self.lastChange=None
|
||||
|
||||
def load(self,data):
|
||||
self.uuid=data.get('uuid',None)
|
||||
self.name=data.get('name',None)
|
||||
self.color=data.get('color',None)
|
||||
self.lastChange=data.get('lastChange',None)
|
||||
|
||||
def export(self):
|
||||
ret={
|
||||
'uuid': self.uuid,
|
||||
'name': self.name,
|
||||
'color': self.color,
|
||||
'lastChange': self.lastChange
|
||||
|
|
Loading…
Reference in a new issue