diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-26 14:11:49 +0200 |
|---|---|---|
| committer | Georgios Andreadis <info@gandreadis.com> | 2020-06-26 14:11:49 +0200 |
| commit | 3ad26793527bf077e296d652d22a0e4234a9b98d (patch) | |
| tree | 1b64fd6105a8e3515b2a9c42b5a301b2834eb3d2 /opendc/api/v2/simulations/endpoint.py | |
| parent | f1017676a150de60b13ff2b33ca83079d87aebfc (diff) | |
Implement DELETE and fix tests
Diffstat (limited to 'opendc/api/v2/simulations/endpoint.py')
| -rw-r--r-- | opendc/api/v2/simulations/endpoint.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opendc/api/v2/simulations/endpoint.py b/opendc/api/v2/simulations/endpoint.py index 62257d40..232df2ff 100644 --- a/opendc/api/v2/simulations/endpoint.py +++ b/opendc/api/v2/simulations/endpoint.py @@ -20,6 +20,7 @@ def POST(request): 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.obj['_id']]) + simulation.set_property('experimentIds', []) simulation.insert() user = User.from_google_id(request.google_id) |
