Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created April 14, 2011 21:39
Show Gist options
  • Save andymckay/920622 to your computer and use it in GitHub Desktop.
Save andymckay/920622 to your computer and use it in GitHub Desktop.
diff --git a/apps/amo/management/commands/dedupe_approvals.py b/apps/amo/management/commands/dedupe_approvals.py
index d95701b..77ef6c0 100644
--- a/apps/amo/management/commands/dedupe_approvals.py
+++ b/apps/amo/management/commands/dedupe_approvals.py
@@ -11,4 +11,4 @@ class Command(BaseCommand):
def handle(self, *args, **options):
pks = Addon.objects.values_list('pk', flat=True).order_by('id')
for chunk in chunked(pks, 100):
- dedupe_approvals(chunk)
+ dedupe_approvals.delay(chunk)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment