From 1f1fc42605b2fef31d4c01164aed417deb2fcce8 Mon Sep 17 00:00:00 2001 From: Laura Beaufort Date: Wed, 19 Feb 2020 13:39:18 -0500 Subject: [PATCH] Clean up python logic, fix default year --- fec/data/views.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/fec/data/views.py b/fec/data/views.py index 2f5a69907a..e64ff6fcf8 100644 --- a/fec/data/views.py +++ b/fec/data/views.py @@ -682,30 +682,24 @@ def spending(request): def pres_finance_map(request): - # office = request.GET.get("office", "P") election_year = int( - request.GET.get("election_year", constants.DEFAULT_ELECTION_YEAR) + request.GET.get("election_year", constants.DEFAULT_PRESIDENTIAL_YEAR) ) - # max_election_year = utils.current_cycle() + 4 - # election_years = utils.get_cycles(max_election_year) - return render( request, "pres-finance-map.jinja", { "parent": "data", "title": "Presidential Campaign Finance Map", - # "election_years": election_years, "election_year": election_year, - # "office": "P", "social_image_identifier": "data", "page_specific_css": "/static/css/widgets/pres-finance-map.css", - + }, ) - + def feedback(request): if request.method == "POST":