operators result schedule now contain entityId and task_id for every step (if they are available)

parent 44a006e8
...@@ -302,8 +302,10 @@ class Operator(ObjectResource): ...@@ -302,8 +302,10 @@ class Operator(ObjectResource):
'entranceTime':record["entranceTime"]}) 'entranceTime':record["entranceTime"]})
if record.get("exitTime", None) != None: if record.get("exitTime", None) != None:
json['results']['schedule'][-1]["exitTime"] = record["exitTime"] json['results']['schedule'][-1]["exitTime"] = record["exitTime"]
# if record.get("entity", None): if record.get("entity", None):
# json['results']['schedule'][-1]["entityId"] = record["entity"].id json['results']['schedule'][-1]["entityId"] = record["entity"].id
if record.get("task_id", None):
json['results']['schedule'][-1]["task_id"] = record["task_id"]
G.outputJSON['elementList'].append(json) G.outputJSON['elementList'].append(json)
#=========================================================================== #===========================================================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment