diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-02 18:39:28 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:47:21 +0200 |
| commit | f119fc78dda4d1e828dde04f378a63a93e3a0a7e (patch) | |
| tree | bea1eace5d47f21a7ccb835c6a6079bc92e48710 /web-server/opendc/api/v2/simulations | |
| parent | 7f27a6370a0af25e1bf6ff8f46360c6c26c21e0b (diff) | |
Add current progress on frontend port
Diffstat (limited to 'web-server/opendc/api/v2/simulations')
| -rw-r--r-- | web-server/opendc/api/v2/simulations/endpoint.py | 3 |
1 files changed, 3 insertions, 0 deletions
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() |
