Permalink
Browse files

GA: Tweaks for 2013

  • Loading branch information...
1 parent 7255f92 commit 01f38975df6f4ff12a637c02fa0badd0951b44ff Paul Tagliamonte committed Jan 3, 2013
Showing with 10 additions and 4 deletions.
  1. +3 −3 openstates/ga/__init__.py
  2. +7 −1 openstates/ga/committees.py
@@ -12,10 +12,10 @@
'lower': {'name': 'House', 'title': 'Representative'},
},
'terms': [
- {'name': '2013-2014', 'start_year': 2013, 'end_year': 2014,
- 'sessions': ['2013_14']},
{'name': '2011-2012', 'start_year': 2011, 'end_year': 2012,
- 'sessions': ['2011_12', '2011_ss']}
+ 'sessions': ['2011_12', '2011_ss']},
+ {'name': '2013-2014', 'start_year': 2013, 'end_year': 2014,
+ 'sessions': ['2013_14']}
],
'session_details': {
'2013_14': {
@@ -14,7 +14,13 @@ def scrape_session(self, term, chambers, session):
sid = self.metadata['session_details'][session]['_guid']
committees = self.cservice.GetCommitteesBySession(
sid
- )['CommitteeListing']
+ )
+
+ #if committees.strip() == "":
+ # return # If we get here, it's a problem.
+ # Commenting this out for future debugging. - PRT
+
+ committees = committees['CommitteeListing']
for committee in committees:
cid = committee['Id']
committee = self.cservice.GetCommittee(cid)

0 comments on commit 01f3897

Please sign in to comment.