diff --git a/CHANGELOG.md b/CHANGELOG.md index e3611f49..5e13f14e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 6.18.4 - March 25, 2024 + +* Different approach to committee name matching + + ## 6.18.3 - March 25, 2024 * Add other_names to committee matching for Event Imports diff --git a/openstates/importers/events.py b/openstates/importers/events.py index 125492f1..645c1c90 100644 --- a/openstates/importers/events.py +++ b/openstates/importers/events.py @@ -90,7 +90,7 @@ def prepare_for_db(self, data: _JsonDict) -> _JsonDict: if "person_id" in participant: participant["person_id"] = self.resolve_person(participant["person_id"]) elif "organization_id" in participant: - participant["organization_id"] = self.resolve_committee( + participant["organization_id"] = self.org_importer.resolve_json_id( participant["organization_id"], allow_no_match=True ) diff --git a/openstates/importers/organizations.py b/openstates/importers/organizations.py index ed3f3f5d..d597aff4 100644 --- a/openstates/importers/organizations.py +++ b/openstates/importers/organizations.py @@ -14,5 +14,5 @@ def limit_spec(self, spec: _JsonDict) -> _JsonDict: name = spec.pop("name", None) if name: - return Q(**spec) & Q(name=name) + return Q(**spec) & Q(name=name) & Q(other_names=name) return spec diff --git a/pyproject.toml b/pyproject.toml index c2ab76fd..67f1ec3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "openstates" -version = "6.18.3" +version = "6.18.4" description = "core infrastructure for the openstates project" authors = ["James Turk "] license = "MIT"