diff --git a/openstates/importers/organizations.py b/openstates/importers/organizations.py index 9a6557df..c24e6c7d 100644 --- a/openstates/importers/organizations.py +++ b/openstates/importers/organizations.py @@ -14,5 +14,7 @@ def limit_spec(self, spec: _JsonDict) -> _JsonDict: name = spec.pop("name", None) if name: - return Q(**spec) & (Q(other_names__0__name=name) | Q(name=name)) + return Q(**spec) & ( + Q(name=name) | Q(other_names__contains=[{"name": name}]) + ) return spec