Skip to content

Commit

Permalink
use filed data to get most recent filing
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Apr 23, 2024
1 parent 7b58b81 commit 65e8ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions camp_fin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def get_queryset(self, **kwargs):
campaign.division_id,
office.description AS office_name,
filing.closing_balance,
COALESCE(filing.filed_date, filing.date_added) AS filing_date
filing.filed_date AS filing_date
FROM camp_fin_candidate AS candidate
JOIN camp_fin_filing AS filing
USING(entity_id)
Expand All @@ -634,7 +634,7 @@ def get_queryset(self, **kwargs):
ON campaign.office_id = office.id
WHERE filing.date_added >= '2010-01-01'
AND filing.closing_balance IS NOT NULL
ORDER BY candidate.id, filing.date_added DESC
ORDER BY candidate.id, filing.filed_date DESC
) AS candidates
) AS s
ORDER BY {0} {1}
Expand Down

0 comments on commit 65e8ecc

Please sign in to comment.