From 2969741d057f98c3ea927dc460a534c49b781fee Mon Sep 17 00:00:00 2001 From: Pat Phongsvirajati Date: Tue, 18 Apr 2023 14:15:07 -0400 Subject: [PATCH] add 2024 presidential map candidate export links and update coverage dates sentence after revert --- fec/data/templates/partials/browse-data/candidates.jinja | 5 ++++- fec/data/views.py | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fec/data/templates/partials/browse-data/candidates.jinja b/fec/data/templates/partials/browse-data/candidates.jinja index de08a2cc11..0ff1ef4d7a 100644 --- a/fec/data/templates/partials/browse-data/candidates.jinja +++ b/fec/data/templates/partials/browse-data/candidates.jinja @@ -83,11 +83,12 @@

This data summarizes financial information disclosed by presidential candidates who have reported at least $100,000 in contributions from individuals other than the candidate.

-

The 2020 files contain financial activity through {{ monthly_coverage_date }} for presidential monthly filers and through {{ quarterly_coverage_date }} for presidential quarterly filers.

+

The {{ default_presidential_year }} files contain financial activity through the most recent filing. The historical files contain financial activity through December 31 of the corresponding election year.

Overall candidate summary
    +
  • 2024
  • 2020
  • 2016
  • 2012
  • @@ -98,6 +99,7 @@
      +
    • 2024
    • 2020
    • 2016
    • 2012
    • @@ -108,6 +110,7 @@
        +
      • 2024
      • 2020
      • 2016
      • 2012
      • diff --git a/fec/data/views.py b/fec/data/views.py index 3cf92b0249..b28460e080 100644 --- a/fec/data/views.py +++ b/fec/data/views.py @@ -114,6 +114,7 @@ def search(request): def browse_data(request): monthly_coverage_date = utils.get_presidential_coverage_date("M") quarterly_coverage_date = utils.get_presidential_coverage_date("Q") + default_presidential_year = constants.DEFAULT_PRESIDENTIAL_YEAR return render( request, "browse-data.jinja", @@ -123,6 +124,7 @@ def browse_data(request): "social_image_identifier": "data", "monthly_coverage_date": monthly_coverage_date, "quarterly_coverage_date": quarterly_coverage_date, + "default_presidential_year": default_presidential_year, }, )