from __future__ import annotations try: from backend.database import db except ImportError: # pragma: no cover - compatibility for direct service imports from database import db # Scoring rules live in services/recommendation_service.py (B3) — this module # only re-exports them so existing `stats_service.get_statistical_recommendation` # callers keep working. from services.recommendation_service import get_statistical_recommendation __all__ = ['summary', 'heatmap', 'get_statistical_recommendation'] def summary() -> dict: return db.stats() def heatmap() -> list[dict]: return db.heatmap()