From a1d3be9f522506b91b22480352263d6dfca2f5e1 Mon Sep 17 00:00:00 2001 From: rshorey Date: Thu, 14 Feb 2019 11:18:20 -0500 Subject: [PATCH] fix form types for presidential filings --- cycle_2020/utils/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cycle_2020/utils/loader.py b/cycle_2020/utils/loader.py index 31b15a7..9a55d50 100644 --- a/cycle_2020/utils/loader.py +++ b/cycle_2020/utils/loader.py @@ -166,7 +166,7 @@ def check_coverage_dates(filing, coverage_end): #remove filings whose coverage period ended outside the current cycle if coverage_end: coverage_end_year = coverage_end[0:4] - if filing['form_type'] == 'F3P' and CYCLE % 4 == 0: + if filing['form_type'] in ['F3PN', 'F3PA'] and CYCLE % 4 == 0: #if it's a presidential filing, we want it if it's in the 4-year period. acceptable_years = [CYCLE, CYCLE-1, CYCLE-3, CYCLE-4] else: