fix: re-export _SPORTS_HINT_RE from search ranking shim (#2273)
The compatibility re-export shim at src/search/ranking.py forgot _SPORTS_HINT_RE, so tests importing src.search.ranking raised AttributeError on the [src] parametrize variant. Fixes #1995 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@ parallel copy; it now re-exports so the two cannot drift out of sync again.
|
||||
|
||||
from services.search.ranking import ( # noqa: F401
|
||||
_AGE_FORMATS,
|
||||
_SPORTS_HINT_RE,
|
||||
_utcnow_naive,
|
||||
rank_search_results,
|
||||
recency_score,
|
||||
|
||||
Reference in New Issue
Block a user