Skip to content

[pull] master from scrapinghub:master - #105

Merged
pull[bot] merged 1 commit into
zanachka:masterfrom
scrapinghub:master
Sep 3, 2026
Merged

pull[bot] merged 1 commit into
zanachka:masterfrom
scrapinghub:master

Conversation

@pull

@pull pull Bot commented Sep 3, 2026

Copy link
Copy Markdown

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 : )

Fixes #1369.

search_dates uses a process-wide DateSearchWithDetection singleton.
detect_language stashed a single-use FullTextLanguageDetector on self,
and _ExactLanguageSearch kept a 1-slot locale cache. Concurrent calls
that disagree about the language could return None or a date from the
wrong locale.

Use a local detector and return the locale from get_current_language so
neither value is instance state. LocaleDataLoader.get_locale already
caches.

Thanks @serhii73 for the report.
@pull pull Bot locked and limited conversation to collaborators Sep 3, 2026
@pull pull Bot added the ⤵️ pull label Sep 3, 2026
@pull
pull Bot merged commit 27182cd into zanachka:master Sep 3, 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