diff --git a/CHANGELOG.md b/CHANGELOG.md index 88f53a41..d6d81de5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog -## 6.20.8 - Oct 18, 2024q +## 6.20.9 - Nov 4, 2024 + +* Fix bug with import caused by newish "extras" field on scraper + +## 6.20.8 - Oct 18, 2024 * Improve resolve bill to capture at least the most recent session diff --git a/openstates/importers/jurisdiction.py b/openstates/importers/jurisdiction.py index 37c4a2c9..dbd0b69b 100644 --- a/openstates/importers/jurisdiction.py +++ b/openstates/importers/jurisdiction.py @@ -19,4 +19,6 @@ def get_object(self, data: _JsonDict) -> Model: def prepare_for_db(self, data: _JsonDict) -> _JsonDict: for s in data["legislative_sessions"]: s.pop("_scraped_name", None) + if "extras" in s: + s.pop("extras") return data diff --git a/pyproject.toml b/pyproject.toml index 18cb49bf..16e23d08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "openstates" -version = "6.20.8" +version = "6.20.9" description = "core infrastructure for the openstates project" authors = ["James Turk "] license = "MIT"