summaryrefslogtreecommitdiff
path: root/web-server/opendc/api/v2/simulations/endpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'web-server/opendc/api/v2/simulations/endpoint.py')
-rw-r--r--web-server/opendc/api/v2/simulations/endpoint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/web-server/opendc/api/v2/simulations/endpoint.py b/web-server/opendc/api/v2/simulations/endpoint.py
index c978fad7..bcdea650 100644
--- a/web-server/opendc/api/v2/simulations/endpoint.py
+++ b/web-server/opendc/api/v2/simulations/endpoint.py
@@ -15,7 +15,7 @@ def POST(request):
topology = Topology({'name': 'Default topology', 'rooms': []})
topology.insert()
- simulation = Simulation({'simulation': request.params_body['simulation']})
+ simulation = Simulation(request.params_body['simulation'])
simulation.set_property('datetimeCreated', Database.datetime_to_string(datetime.now()))
simulation.set_property('datetimeLastEdited', Database.datetime_to_string(datetime.now()))
simulation.set_property('topologyIds', [topology.get_id()])