Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Dec 16, 2024
1 parent 7f00621 commit 6719282
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def purge_deletion_orders(self):
for deletion_order in qs:
if deletion_order.repository_user not in self.allowed_users:
to_delete.append(deletion_order.id)
print("here")
continue

if RepositoryWhiteList.objects.filter(
Expand Down Expand Up @@ -337,37 +336,26 @@ def transfer_ownership(self):
created_at__gt=timezone.now(),
).exclude(id__in=ids)[:100]

print(-1111)
if qs.count() == 0:
break

print(2222)

for deletion_order in qs:
ids.append(deletion_order.id)

try:
print(1111)
if self.github_client.repo_exists(
owner=deletion_order.repository_user, repo=deletion_order.repository_name
):
print(3333)
new_owner = self.get_username(deletion_order.repository_user, deletion_order.repository_name)
if not new_owner:
continue

print(4444)

self.github_client.transfer_repo(repo=deletion_order.repository_name, new_owner=new_owner)
deletion_order.status = RepositoryDeletionOrder.Status.TRANSFERRING
deletion_order.save()

print(5555)

tasks.send_repository_deletion_notification.delay(deletion_order.id, new_owner)

print(6666, tasks.send_repository_deletion_notification.delay)

except Exception as e:
deletion_order.status = RepositoryDeletionOrder.Status.ERROR
deletion_order.status_text = str(e)
Expand Down

0 comments on commit 6719282

Please sign in to comment.