Skip to content

Commit

Permalink
Merge branch 'main' into dmalone/complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
DMalone87 authored Dec 10, 2024
2 parents 4243b83 + b8d3d15 commit 616c36a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scrapers/common/base_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ class BaseItem:
model: str
data: dict
scraped_at: datetime = datetime.now(UTC)
source: str = "50-a.org"
1 change: 1 addition & 0 deletions scrapers/fifty_a/fifty_a/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ class CommandItem(FiftyAItem):

@dataclass
class OfficerItem(FiftyAItem):

employment: List[dict] = None
service_start: str = None
1 change: 0 additions & 1 deletion tests/fifty_a/fifty_a/spiders/test_officer.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def test_parse_officer(self):
for e in officer.employment:
assert e["agency_uid"] == AGENCY_UID
assert "/command/" in e["unit_uid"]

try:
valid_data = CreateOfficer(**officer.data)
except ValueError as e:
Expand Down

0 comments on commit 616c36a

Please sign in to comment.