From f119fc78dda4d1e828dde04f378a63a93e3a0a7e Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 2 Jul 2020 18:39:28 +0200 Subject: Add current progress on frontend port --- web-server/opendc/api/v2/simulations/endpoint.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web-server/opendc/api/v2/simulations') diff --git a/web-server/opendc/api/v2/simulations/endpoint.py b/web-server/opendc/api/v2/simulations/endpoint.py index bcdea650..993e317a 100644 --- a/web-server/opendc/api/v2/simulations/endpoint.py +++ b/web-server/opendc/api/v2/simulations/endpoint.py @@ -22,6 +22,9 @@ def POST(request): simulation.set_property('experimentIds', []) simulation.insert() + topology.set_property('simulationId', simulation.get_id()) + topology.update() + user = User.from_google_id(request.google_id) user.obj['authorizations'].append({'simulationId': simulation.get_id(), 'authorizationLevel': 'OWN'}) user.update() -- cgit v1.2.3