Skip to content

Commit

Permalink
explicitly remove bills that don't have action dates from primary spo…
Browse files Browse the repository at this point in the history
…nsorships
  • Loading branch information
fgregg committed Jan 6, 2024
1 parent 96af9e1 commit d0170da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chicago/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def primary_sponsorships(self):
sponsorships__person=self, sponsorships__primary=True
)
.annotate(last_action=models.Max("actions__date"))
.filter(last_action__isnull=False)
.order_by("-last_action")
)

Expand Down

0 comments on commit d0170da

Please sign in to comment.