Skip to content

Commit 90289f2

Browse files
Merge pull request #200 from openstates/bill-import-sponsor-name-strip
Bill import sponsor name strip
2 parents 2c98f3c + 788ae76 commit 90289f2

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 6.25.3 - Jul 16, 2026
4+
* Fixes a resolve_person matching bug when scraper forgets to strip whitespace from person name
5+
36
## 6.25.2 - Jun 3, 2026
47
* Adds an --ignore-role-warnings flag to people lint CLI to reduce verbosity
58

openstates/importers/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ def resolve_person(
587587
# if we're just resolving on name, include other names and family name
588588
name = spec["name"]
589589
name = re.sub(r"\s+", " ", name)
590+
name = name.strip()
590591
spec = (
591592
Q(name__iexact=name)
592593
| Q(other_names__name__iexact=name)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openstates"
3-
version = "6.25.2"
3+
version = "6.25.3"
44
description = "core infrastructure for the openstates project"
55
authors = ["James Turk <dev@jamesturk.net>"]
66
license = "MIT"

0 commit comments

Comments
 (0)