Skip to content

Commit

Permalink
6.18.4: another matching approach
Browse files Browse the repository at this point in the history
  • Loading branch information
NewAgeAirbender committed Mar 25, 2024
1 parent 902b36f commit 38e71b8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion openstates/importers/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion openstates/importers/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 38e71b8

Please sign in to comment.