diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-30 14:01:17 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:42:28 +0200 |
| commit | 1c58ae3b25120ac670b897665bac7d8f18156220 (patch) | |
| tree | 71f8b0bbd8a3044ccb1a8c61b8ed9cc1d4e7fa99 /web-server/opendc/api/v2/simulations/endpoint.py | |
| parent | b9dcda0fb4bbb52ebd8a15acf324561a6d687eba (diff) | |
Fix more violations and ensure experimentIds handling
Diffstat (limited to 'web-server/opendc/api/v2/simulations/endpoint.py')
| -rw-r--r-- | web-server/opendc/api/v2/simulations/endpoint.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web-server/opendc/api/v2/simulations/endpoint.py b/web-server/opendc/api/v2/simulations/endpoint.py index 232df2ff..b48ad71b 100644 --- a/web-server/opendc/api/v2/simulations/endpoint.py +++ b/web-server/opendc/api/v2/simulations/endpoint.py @@ -3,7 +3,6 @@ from datetime import datetime from opendc.models.simulation import Simulation from opendc.models.topology import Topology from opendc.models.user import User -from opendc.util import exceptions from opendc.util.database import Database from opendc.util.rest import Response @@ -13,7 +12,7 @@ def POST(request): request.check_required_parameters(body={'simulation': {'name': 'string'}}) - topology = Topology({'name': 'Default topology'}) + topology = Topology({'name': 'Default topology', 'rooms': []}) topology.insert() simulation = Simulation({'simulation': request.params_body['simulation']}) |
