Skip to content

Commit

Permalink
chore: Use consistent variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 30, 2024
1 parent 44c9d68 commit 36e54c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ca_qc_dollard_des_ormeaux/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def scrape(self):

p = Person(primary_org="legislature", name=name, district=district, role=role)
p.add_source(COUNCIL_PAGE)
img_path = councillor.xpath(".//@data-src")
if img_path:
p.image = img_path[0]
image = councillor.xpath(".//@data-src")
if image:
p.image = image[0]
p.add_contact("email", email)
p.add_contact("voice", general_phone, "legislature")
p.add_contact("fax", general_fax, "legislature")
Expand Down

0 comments on commit 36e54c9

Please sign in to comment.