Skip to content

Commit

Permalink
Merge pull request #153 from openstates/event-import-match-non-deleted
Browse files Browse the repository at this point in the history
Events: importer matches incoming events to NON-deleted existing events
  • Loading branch information
jessemortenson authored Nov 8, 2024
2 parents a569a86 + d775a84 commit 694b135
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 6.20.11 - Nov 7, 2024

* Events import: ignore deleted events when matching incoming events to existing.

## 6.20.10 - Nov 7, 2024

* Add additional log info re: archiving scrape files to cloud storage
Expand Down
1 change: 1 addition & 0 deletions openstates/importers/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def get_object(self, event: _JsonDict) -> Event:
"start_date": event["start_date"],
"end_date": event["end_date"],
"jurisdiction_id": self.jurisdiction_id,
"deleted": False, # no need to match existing deleted events if this is new/incoming
}
return self.model_class.objects.get(**spec)

Expand Down
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.10"
version = "6.20.11"
description = "core infrastructure for the openstates project"
authors = ["James Turk <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 694b135

Please sign in to comment.