Skip to content

Commit

Permalink
improve deletion command
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Dec 16, 2024
1 parent 6719282 commit 43b6bf6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def purge_deletion_orders(self):
page = 0
to_delete = []
while True:
qs = RepositoryDeletionOrder.objects.filter(
status=RepositoryDeletionOrder.Status.PENDING,
qs = RepositoryDeletionOrder.objects.exclude(
status__in=[RepositoryDeletionOrder.Status.TRANSFERRED, RepositoryDeletionOrder.Status.DELETED]
)[page * 100 : (page + 1) * 100]

if len(qs) == 0:
Expand Down

0 comments on commit 43b6bf6

Please sign in to comment.