Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(guam): date regex was picking wrong values #892

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

grossir
Copy link
Contributor

@grossir grossir commented Jan 26, 2024

Solves #789

  • Validated and improved regexes for date, docket and citation

Solves freelawproject#789

- Validated and improved regexes for date, docket and citation
@grossir grossir requested a review from flooie January 26, 2024 00:29
Comment on lines 51 to 57
date = self.find_date(text)
if not date:
logger.error(
"Could not find date for record in guam scraper Year: %s",
self._year,
)
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you know about date_filed_is_approximate

If we cant find the date, but we can find the year and month we usually assign the date to the 15th of the month and year and set date_filed_is_approximate to True,

if we only find the year - we can do the same - but assign the date to the middle of the year and state if date_filed_is_approximate = True again

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the PR using date_filed_is_approximate, please check again

@flooie flooie merged commit da04f9c into freelawproject:main Jan 31, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants