We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e6ccbf commit 7964a97Copy full SHA for 7964a97
1 file changed
ckanext/dcor_schemas/cli.py
@@ -251,7 +251,8 @@ def dcor_purge_unused_collections_and_circles(
251
dry_run: bool = False):
252
"""Purge old collections and circles that don't contain any datasets"""
253
# Iterate over all collections
254
- for (group,) in model.Session.query(model.Group.id).all():
+ for (group_id,) in model.Session.query(model.Group.id).all():
255
+ group = model.Group.get(group_id)
256
# Check group children
257
if group.get_children_groups():
258
print(f"Ignoring group '{group.id}' with children")
0 commit comments