Skip to content

Commit

Permalink
build: Fix build (local precommit problem)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Feb 1, 2024
1 parent 9b620d6 commit e93eb1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions viewer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1552,9 +1552,7 @@ def create(self, request, *args, **kwargs):
if not user.is_authenticated:
return redirect(settings.LOGIN_URL)
else:
if target_access_string not in self.get_proposals_for_user(
user
):
if target_access_string not in self.get_proposals_for_user(user):
return Response(
{
"target_access_string": [
Expand Down Expand Up @@ -2084,7 +2082,9 @@ def post(self, request):
logger.info('+ session_project_id=%s', session_project_id)

# Project must exist.
project: Optional[models.Project] = models.Project.objects.filter(id=access_id).first()
project: Optional[models.Project] = models.Project.objects.filter(
id=access_id
).first()
if not project:
content = {'error': f'Access ID (Project) {access_id} does not exist'}
return Response(content, status=status.HTTP_404_NOT_FOUND)
Expand Down

0 comments on commit e93eb1e

Please sign in to comment.