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

Commit

Permalink
make sure filer id is always in prez csv
Browse files Browse the repository at this point in the history
  • Loading branch information
rshorey committed Apr 12, 2019
1 parent fcc0e1c commit 9e98ad0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cycle_2020/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@ def rows_with_totals():
row.append(value)
for f in filing_fields:
if not filing:
if f == 'filer_id':
#if there is no filing, use the candidate's committee id
value = getattr(result, "fec_committee_id")
if value is not None:
row.append(value)
continue
row.append("")
continue
value = getattr(filing, f)
Expand Down

0 comments on commit 9e98ad0

Please sign in to comment.