mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-09 20:02:20 +03:00
model classes fixed about json issues
This commit is contained in:
parent
b51646f053
commit
e917e5023f
2 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ class Plugin(object):
|
|||
"""docstring for Plugin"""
|
||||
|
||||
def __init__(self, message):
|
||||
self.plugin = message
|
||||
self.plugin = message['plugin']
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
|
|
|
@ -30,7 +30,7 @@ class Task(object):
|
|||
|
||||
@property
|
||||
def command_cls_id(self):
|
||||
return self.task['commandClsId']
|
||||
return json.loads(str(self.task))['commandClsId']
|
||||
|
||||
@property
|
||||
def parameter_map(self):
|
||||
|
@ -42,7 +42,7 @@ class Task(object):
|
|||
|
||||
@property
|
||||
def plugin(self):
|
||||
return Plugin(self.task['plugin'])
|
||||
return Plugin(json.loads(str(self.task)))
|
||||
|
||||
@property
|
||||
def cron_str(self):
|
||||
|
|
Loading…
Reference in a new issue