From 7a1685d4c8e730a7c4b87543a45b3b2d3c49d7c2 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 28 Sep 2011 11:57:07 +0100 Subject: [PATCH] Fix the email extract to avoid dupe characters --- app/tools/management/commands/emailextract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tools/management/commands/emailextract.py b/app/tools/management/commands/emailextract.py index ae43d9e..bc33f55 100644 --- a/app/tools/management/commands/emailextract.py +++ b/app/tools/management/commands/emailextract.py @@ -33,7 +33,7 @@ class Command(BaseCommand): corporation = options.get('corporation', None) domain = options.get('domain', None) - chars = EVEPlayerCharacter.objects.select_related('eveaccount__user').filter(eveaccount__api_status=API_STATUS_OK, eveaccount__isnull=False) + chars = EVEPlayerCharacter.objects.select_related('eveaccount__user').filter(eveaccount__api_status=API_STATUS_OK, eveaccount__isnull=False).distinct() if alliance: chars = chars.filter(corporation__alliance__id=alliance) elif corporation: