Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
fix form types for presidential filings
Browse files Browse the repository at this point in the history
  • Loading branch information
rshorey committed Feb 14, 2019
1 parent f102b0a commit a1d3be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cycle_2020/utils/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a1d3be9

Please sign in to comment.