Skip to content

[pull] master from scrapinghub:master#73

Merged
pull[bot] merged 1 commit intozanachka:masterfrom
scrapinghub:master
Mar 2, 2026
Merged

[pull] master from scrapinghub:master#73
pull[bot] merged 1 commit intozanachka:masterfrom
scrapinghub:master

Conversation

@pull
Copy link

@pull pull bot commented Mar 2, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* Fix word-number phrases parsing (e.g., 'two days later')

Close #1314

* Fix word-number phrases parsing (e.g., "two days later", "two days from now") (#1317)

* Initial plan

* Fix word-number phrases parsing for 'later' and 'from now' patterns

Co-authored-by: serhii73 <24910277+serhii73@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: serhii73 <24910277+serhii73@users.noreply.github.com>
Co-authored-by: Serhii A <aserhii@protonmail.com>

* Update tests/test_date_parser.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply pre-commit

* Fix approximate day counts in word number tests

- Update 'four months later' from 120 to 122 days (June 15 to Oct 15, 2025)
- Update 'six years later' from 2190 to 2191 days (accounts for leap year in 2028)
- These values now match the actual calendar arithmetic performed by the parser

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: serhii73 <24910277+serhii73@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@pull pull bot locked and limited conversation to collaborators Mar 2, 2026
@pull pull bot added the ⤵️ pull label Mar 2, 2026
@pull pull bot merged commit e22e62e into zanachka:master Mar 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant