Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix bogus primary sponsored bills count

  • Loading branch information...
commit 332865906142f035450c87a145851a439cd7622c 1 parent 14fb795
@twneale twneale authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 site/templates/billy/web/public/bio_blurb.html
View
6 site/templates/billy/web/public/bio_blurb.html
@@ -7,12 +7,12 @@
{% plural %}
{{name}} represents {{chamber}} District {{district}} in the {{state}} {{chamber_name}}, is a member of <em>{{com_count}} committees</em>,
{% endblocktrans %}
-{% with count=legislator.primary_sponsored_bills.count %}
+{% with count=legislator.sponsored_bills_counts.primary %}
{% trans "and" %}
{% if count %}
{% trans "is the primary sponsor of" %}<em> {{count|apnumber}}</em>
- {% with count=legislator.secondary_sponsored_bills.count %}
+ {% with count=legislator.sponsored_bills_counts.secondary %}
{% if count %}
{% trans "bills,"%} {% trans "and is the secondary sponsor of"%} <em>{{count|apnumber}}</em> {% trans "bills" %}
{% else %}
@@ -22,7 +22,7 @@
{% else %}
- {% with count=legislator.secondary_sponsored_bills.count %}
+ {% with count=legislator.sponsored_bills_counts.secondary %}
{% if count %}
{% trans "is a secondary sponsor of" %} {{count|apnumber}} {% trans "bills" %}.
{% else %}
Please sign in to comment.
Something went wrong with that request. Please try again.