Skip to content

Commit

Permalink
Merge pull request #151 from openstates/jurisdiction-drop-extras-befo…
Browse files Browse the repository at this point in the history
…re-import

Fix import bug caused by 'extras' property on legislative session
  • Loading branch information
jessemortenson authored Nov 4, 2024
2 parents d53fcfa + fb62dee commit 7585789
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 2 additions & 0 deletions openstates/importers/jurisdiction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.20.8"
version = "6.20.9"
description = "core infrastructure for the openstates project"
authors = ["James Turk <dev@jamesturk.net>"]
license = "MIT"
Expand Down

0 comments on commit 7585789

Please sign in to comment.