Commit c8ee8d4e authored by Lukas Burgey's avatar Lukas Burgey

Lint some code

parent 8dc485f1
......@@ -26,19 +26,23 @@ def user_services(user):
return []
def _api_error_response(error):
return Response({'error': error}, status=status.HTTP_400_BAD_REQUEST)
def user_state(user):
return serializers.UserStateSerializer(
user,
).data
def _api_state_response_data(request):
return {
'user_state': user_state(request.user),
}
def state_view_data(request):
data = {}
if request.user.is_authenticated:
......@@ -131,7 +135,6 @@ class DeploymentView(views.APIView):
service=models.Service.objects.get(id=request.data['service']),
)
if request_type == 'add':
deployment.user_deploy()
elif request_type == 'remove':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment