backend-lehrer (11 files): - llm_gateway/routes/schools.py (867 → 5), recording_api.py (848 → 6) - messenger_api.py (840 → 5), print_generator.py (824 → 5) - unit_analytics_api.py (751 → 5), classroom/routes/context.py (726 → 4) - llm_gateway/routes/edu_search_seeds.py (710 → 4) klausur-service (12 files): - ocr_labeling_api.py (845 → 4), metrics_db.py (833 → 4) - legal_corpus_api.py (790 → 4), page_crop.py (758 → 3) - mail/ai_service.py (747 → 4), github_crawler.py (767 → 3) - trocr_service.py (730 → 4), full_compliance_pipeline.py (723 → 4) - dsfa_rag_api.py (715 → 4), ocr_pipeline_auto.py (705 → 4) website (6 pages): - audit-checklist (867 → 8), content (806 → 6) - screen-flow (790 → 4), scraper (789 → 5) - zeugnisse (776 → 5), modules (745 → 4) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
37 lines
948 B
Python
37 lines
948 B
Python
"""
|
|
PostgreSQL Metrics Database Service — Barrel Re-export
|
|
|
|
Split into:
|
|
- metrics_db_core.py — Pool, feedback, metrics, relevance
|
|
- metrics_db_schema.py — Table initialization (DDL)
|
|
- metrics_db_zeugnis.py — Zeugnis source/document/stats operations
|
|
|
|
All public names are re-exported here for backward compatibility.
|
|
"""
|
|
|
|
# Schema: table initialization
|
|
from metrics_db_schema import init_metrics_tables # noqa: F401
|
|
|
|
# Core: pool, feedback, search logs, metrics, relevance
|
|
from metrics_db_core import ( # noqa: F401
|
|
DATABASE_URL,
|
|
get_pool,
|
|
store_feedback,
|
|
log_search,
|
|
log_upload,
|
|
calculate_metrics,
|
|
get_recent_feedback,
|
|
get_upload_history,
|
|
store_relevance_judgment,
|
|
calculate_precision_recall,
|
|
)
|
|
|
|
# Zeugnis operations
|
|
from metrics_db_zeugnis import ( # noqa: F401
|
|
get_zeugnis_sources,
|
|
upsert_zeugnis_source,
|
|
get_zeugnis_documents,
|
|
get_zeugnis_stats,
|
|
log_zeugnis_event,
|
|
)
|