Skip to content

Commit

Permalink
Pylinting
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKSeal committed Mar 3, 2024
1 parent 35aa022 commit a2c657a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion tardis/apps/projects/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

# Data classification app
from tardis.apps.dataclassification.models import DATA_CLASSIFICATION_SENSITIVE
from tardis.apps.identifiers.enumerators import IdentifierObjects

# Identifiers app
from tardis.apps.identifiers.models import InstitutionID, ProjectID
Expand Down
2 changes: 1 addition & 1 deletion tardis/apps/single_sign_on/auth/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def authenticate(self, request, remote_user):
object with the given username is not found in the database.
"""
if not remote_user:
return
return None
user = None
username = self.clean_username(remote_user)

Expand Down
4 changes: 2 additions & 2 deletions tardis/tardis_portal/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@ def apply_filters(self, request, applicable_filters):
custom = applicable_filters.pop("identifier")
semi_filtered = super().apply_filters(request, applicable_filters)
return semi_filtered.filter(custom) if custom else semi_filtered

class Meta(MyTardisModelResource.Meta):
object_class = DataFile
queryset = DataFile.objects.all()
Expand Down Expand Up @@ -1998,7 +1998,7 @@ def __clean_bundle_of_identifiers(
):
identifiers = bundle.data.pop("identifiers")
return (bundle, identifiers)

def __create_identifiers(
self,
bundle: Bundle,
Expand Down

0 comments on commit a2c657a

Please sign in to comment.