mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-23 05:05:24 -04:00
93b3e108a6
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>
15 lines
459 B
Python
15 lines
459 B
Python
"""Compatibility re-export shim for the live ranking module.
|
|
|
|
The real implementation lives in :mod:`services.search.ranking`, which is what
|
|
the search runtime (services/search/core.py) imports. This module used to hold a
|
|
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,
|
|
)
|