Skip to content

Commit

Permalink
Whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst committed Sep 15, 2016
1 parent 7950abc commit f69ed2e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions openstates/ut/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@ def scrape(self, session, chambers):
session_search_text = session
if "s" not in session.lower() and "h" not in session.lower():
session_search_text += "GS"

sessions = sessions.xpath(
'//p/a[contains(@href, "{}")]'.format(session_search_text))

session_url = ''

for elem in sessions:

if re.sub(r'\s+', " ", elem.xpath('text()')[0]) == \
self.metadata['session_details'][session]['_scraped_name']:
session_url = elem.xpath('@href')[0]
Expand Down

0 comments on commit f69ed2e

Please sign in to comment.