summaryrefslogtreecommitdiff
path: root/web-server/opendc/api/v2/users
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-07 09:55:10 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:47:25 +0200
commitb4bdf9fde013bb7ff9579693b64ff575f7b00e44 (patch)
tree5e05ceba918849391a639bbeeab37d290a86523c /web-server/opendc/api/v2/users
parent7331e9baf2cfe7bdfb24effcf0a4801da1e7ea4d (diff)
Rename simulations to projects and remove experiment view
Diffstat (limited to 'web-server/opendc/api/v2/users')
-rw-r--r--web-server/opendc/api/v2/users/userId/endpoint.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/web-server/opendc/api/v2/users/userId/endpoint.py b/web-server/opendc/api/v2/users/userId/endpoint.py
index 7a4fb104..be3462c0 100644
--- a/web-server/opendc/api/v2/users/userId/endpoint.py
+++ b/web-server/opendc/api/v2/users/userId/endpoint.py
@@ -1,4 +1,4 @@
-from opendc.models.simulation import Simulation
+from opendc.models.project import Project
from opendc.models.user import User
from opendc.util.rest import Response
@@ -51,8 +51,8 @@ def DELETE(request):
if authorization['authorizationLevel'] != 'OWN':
continue
- simulation = Simulation.from_id(authorization['simulationId'])
- simulation.delete()
+ project = Project.from_id(authorization['projectId'])
+ project.delete()
old_object = user.delete()