Skip to content

Commit

Permalink
Disable complexity warning on users view
Browse files Browse the repository at this point in the history
  • Loading branch information
waxlamp committed Aug 9, 2024
1 parent cee70a5 commit 9a2a2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandiapi/api/views/dandiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def unembargo(self, request, dandiset__pk):
)
# TODO: move these into a viewset
@action(methods=['GET', 'PUT'], detail=True)
def users(self, request, dandiset__pk):
def users(self, request, dandiset__pk): # noqa: C901
dandiset: Dandiset = self.get_object()
if request.method == 'PUT':
if dandiset.unembargo_in_progress:
Expand Down

0 comments on commit 9a2a2b2

Please sign in to comment.