diff --git a/ckan/views/admin.py b/ckan/views/admin.py index fb5ff250fa6..e406095d3b8 100644 --- a/ckan/views/admin.py +++ b/ckan/views/admin.py @@ -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']