Skip to content

Commit

Permalink
Merge pull request #4722 from NewAgeAirbender/wi_bills
Browse files Browse the repository at this point in the history
WI: More Specific Dedupe Key on Votes
  • Loading branch information
NewAgeAirbender authored Nov 15, 2023
2 parents 75f3e0b + f93980b commit d232cda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scrapers/wi/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def add_vote(self, bill, chamber, date, text, url):
classification=vtype,
bill=bill,
)
v.dedupe_key = url.split("/")[-1]
v.dedupe_key = f'{url.split("/")[-1]}-{bill.identifier}'
v.set_count("yes", yes)
v.set_count("no", no)

Expand Down
2 changes: 1 addition & 1 deletion scrapers/wi/committees.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def scrape(self, chamber=None, session=None):
chambers = [chamber] if chamber is not None else ["upper", "lower"]

for chamber in chambers + ["legislature"]:
url = "http://docs.legis.wisconsin.gov/{}/committees/".format(
url = "https://docs.legis.wisconsin.gov/{}/committees/".format(
term.split("-")[0]
)
if chamber == "legislature":
Expand Down
2 changes: 1 addition & 1 deletion scrapers/wi/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def scrape(self):
event.add_source(url)
event.add_source(com_url)

# rename from "Committe Name (Senate)" to "Senate Committee Name"
# rename from "Committee Name (Senate)" to "Senate Committee Name"
chamber_regex = r"(.*)\((Senate|Assembly|Joint)\)"
if re.match(chamber_regex, title):
committee = re.sub(chamber_regex, r"\2 \1", title).strip()
Expand Down

0 comments on commit d232cda

Please sign in to comment.