From 7c1d8fcc187070f6ab784672b6bb89231c0c6719 Mon Sep 17 00:00:00 2001 From: Aaron D Borden Date: Sun, 21 Aug 2016 12:26:36 -0700 Subject: [PATCH] Remove unused commands --- .travis.yml | 4 +-- finance/management/commands/resolve_money.py | 26 -------------------- finance/management/commands/resolve_other.py | 16 ------------ 3 files changed, 2 insertions(+), 44 deletions(-) delete mode 100644 finance/management/commands/resolve_money.py delete mode 100644 finance/management/commands/resolve_other.py diff --git a/.travis.yml b/.travis.yml index efc3ba15..d37a3842 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,8 +27,8 @@ install: script: make test -after_success: # Upload coverage to coveralls.io - - 'if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then coveralls; fi' +after_success: + - coveralls # Upload coverage to coveralls.io deploy: provider: script diff --git a/finance/management/commands/resolve_money.py b/finance/management/commands/resolve_money.py deleted file mode 100644 index 201aa5ef..00000000 --- a/finance/management/commands/resolve_money.py +++ /dev/null @@ -1,26 +0,0 @@ -from django.core.management.base import BaseCommand - -from ...models import IndependentMoney - - -class Command(BaseCommand): - help = 'Set up the test server' - # option_list = custom_options - - def handle(self, *args, **options): - - for im in IndependentMoney.objects.all().order_by('-amount'): - related_money = IndependentMoney.objects.filter( - amount=im.amount, - benefactor=im.benefactor, beneficiary=im.beneficiary) - if related_money.count() <= 1: - continue - related_money = list(related_money) - if related_money.index(im) > 0: - continue - - print related_money.index(im), str(im) - for rm in related_money: - print "\t%s %10s %s %s %s" % ( - rm.report_date, rm.filing_id, - rm.source_xact_id, rm.benefactor) diff --git a/finance/management/commands/resolve_other.py b/finance/management/commands/resolve_other.py deleted file mode 100644 index 145509c0..00000000 --- a/finance/management/commands/resolve_other.py +++ /dev/null @@ -1,16 +0,0 @@ -from django.core.management.base import BaseCommand - -from ...models import Employer, OtherBenefactor - - -class Command(BaseCommand): - help = 'Set up the test server' - # option_list = custom_options - - def handle(self, *args, **options): - for committee in OtherBenefactor.objects.all(): - employers = Employer.objects.filter(name__iexact=committee.name) - if employers.count() == 0: - continue - - print(committee, employers[0])