summaryrefslogtreecommitdiff
path: root/web-server/opendc/api/v2/users/endpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'web-server/opendc/api/v2/users/endpoint.py')
-rw-r--r--web-server/opendc/api/v2/users/endpoint.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/web-server/opendc/api/v2/users/endpoint.py b/web-server/opendc/api/v2/users/endpoint.py
index c6041756..c597732f 100644
--- a/web-server/opendc/api/v2/users/endpoint.py
+++ b/web-server/opendc/api/v2/users/endpoint.py
@@ -1,6 +1,4 @@
from opendc.models.user import User
-from opendc.util import exceptions
-from opendc.util.database import DB
from opendc.util.rest import Response
@@ -13,7 +11,7 @@ def GET(request):
user.check_exists()
- return Response(200, f'Successfully retrieved user.', user.obj)
+ return Response(200, 'Successfully retrieved user.', user.obj)
def POST(request):
@@ -28,4 +26,4 @@ def POST(request):
user.check_already_exists()
user.insert()
- return Response(200, f'Successfully created user.', user.obj)
+ return Response(200, 'Successfully created user.', user.obj)