Commit 36884db7 authored by Georgios Dagkakis's avatar Georgios Dagkakis

key in the results updated. dump updated

parent a4a94421
...@@ -336,7 +336,7 @@ class Operator(ObjectResource): ...@@ -336,7 +336,7 @@ class Operator(ObjectResource):
if self.schedule: if self.schedule:
json['results']['schedule']=[] json['results']['schedule']=[]
for record in self.schedule: for record in self.schedule:
json['results']['schedule'].append({'stationId':record[0].id,'time':record[1]}) json['results']['schedule'].append({'stationId':record[0].id,'entranceTime':record[1]})
G.outputJSON['elementList'].append(json) G.outputJSON['elementList'].append(json)
#=========================================================================== #===========================================================================
......
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
"results": { "results": {
"schedule": [ "schedule": [
{ {
"stationId": "M1", "entranceTime": 0,
"time": 0 "stationId": "M1"
}, },
{ {
"stationId": "M2", "entranceTime": 20.0,
"time": 20.0 "stationId": "M2"
} }
], ],
"waiting_ratio": 81.0, "waiting_ratio": 81.0,
......
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