Skip to content

Commit

Permalink
Add Complaint Scraper test
Browse files Browse the repository at this point in the history
- Also fixed bug in complaint scraper
  • Loading branch information
DMalone87 committed Dec 10, 2024
1 parent 3d3b774 commit ff189a4
Show file tree
Hide file tree
Showing 3 changed files with 1,268 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scrapers/fifty_a/fifty_a/spiders/complaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def parse_penalty(div):
if len(parts) > 1:
d_parts = parts[1].split(",")
if len(d_parts) > 1:
p_data["date_assesed"] = d_parts[-1].strip()
p_data["date_assesed"] = convert_str_to_date(d_parts[-1].strip())
p_data["crb_disposition"] = ",".join(d_parts[:-1]).strip()
else:
p_data["crb_disposition"] = parts[1]
Expand Down
Loading

0 comments on commit ff189a4

Please sign in to comment.