Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 18, 2012
Alison Rowland [#826] Adding API method for office type pie chart b1042b0
Showing with 4 additions and 0 deletions.
  1. +4 −0 influenceexplorer.py
View
4 influenceexplorer.py
@@ -319,6 +319,10 @@ def level_breakdown(self, entity_id, cycle=DEFAULT_CYCLE):
""" Return breakdown of amount contributed to state vs. federal races. """
return self._get_url_json('aggregates/org/%s/recipients/level_breakdown.json' % entity_id, cycle)
+ def office_type_breakdown(self, entity_id, cycle=DEFAULT_CYCLE):
+ """ Return breakdown of amount contributed to races by office type. """
+ return self._get_url_json('aggregates/org/%s/recipients/office_type_breakdown.json' % entity_id, cycle)
+
def registrants(self, entity_id, cycle=DEFAULT_CYCLE, limit=DEFAULT_LIMIT):
'''
Return lobbying firms hired.

No commit comments for this range

Something went wrong with that request. Please try again.