Skip to content

Commit

Permalink
fix(connappct): Handle dates better
Browse files Browse the repository at this point in the history
  • Loading branch information
flooie committed Nov 21, 2023
1 parent a7bb23e commit a6c9ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion juriscraper/opinions/united_states/state/connappct.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _process_html(self) -> None:
"""
for date_section in self.html.xpath("//ul"):
b = date_section[0].xpath(".//preceding::b[1]")[0]
date = b.text_content().strip().split()[-1][:-1]
date = b.text_content().strip().split("of")[-1].strip()[:-1]
for li in date_section.xpath(".//li"):
link = li.xpath(".//a")[0]
link_text = link.text_content()
Expand Down

0 comments on commit a6c9ffd

Please sign in to comment.