Skip to content

Commit

Permalink
Changed variable name to be more elucidating.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Lo committed Jul 23, 2016
1 parent 09cd33d commit 86ba91b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions openstates/ca/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,14 +497,16 @@ def replacer(matchobj):
if not act_str.endswith('.'):
act_str = act_str + '.'

# Determine which chamber the action originated from.
changed = False
for string in ['upper', 'lower', 'joint']:
if actor.startswith(string):
actor = string
for committee_chamber in ['upper', 'lower', 'joint']:
if actor.startswith(committee_chamber):
actor = committee_chamber
changed = True
break
if not changed:
actor = 'other'

if actor != action.actor:
actor_info = kwargs.get('actor_info', {})
actor_info['details'] = action.actor
Expand Down

0 comments on commit 86ba91b

Please sign in to comment.