Skip to content

Commit

Permalink
[ckan#7749] you win flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Aug 11, 2023
1 parent 159e81c commit aa0174a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ def purge_all(self):

def purge_entity(self, ent_type: str):
entities = self.deleted_entities[ent_type]
number = len(entities) if isinstance(entities, list
) else entities.count()
number = len(entities) if isinstance(entities, list) \
else entities.count()

for ent in entities:
entity_id = ent.id if hasattr(ent, 'id') else ent['id']
Expand Down

0 comments on commit aa0174a

Please sign in to comment.