Skip to content

Commit

Permalink
Fix monolith catalogs archiving
Browse files Browse the repository at this point in the history
  • Loading branch information
np5 committed Dec 10, 2024
1 parent 49603f3 commit 427c16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zentral/contrib/monolith/repository_backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def sync_catalogs(self, event_request=None):
# archive old catalogs
for c in (Catalog.objects.annotate(pkginfo_count=Count("pkginfo",
filter=Q(pkginfo__archived_at__isnull=True)))
.filter(archived_at__isnull=True, pkginfo_count=0)
.filter(repository=self.repository, archived_at__isnull=True, pkginfo_count=0)
.exclude(pk__in=found_catalog_pks)):
self._archive_catalog(c, audit_callback)
# update repository
Expand Down

0 comments on commit 427c16b

Please sign in to comment.