Fix: Update all old-style imports inside packages to new paths
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 1m7s
CI / test-go-edu-search (push) Successful in 46s
CI / test-python-klausur (push) Failing after 2m32s
CI / test-python-agent-core (push) Successful in 33s
CI / test-nodejs-website (push) Successful in 34s

65 files in klausur-service packages + 3 in backend-lehrer packages
had stale imports referencing deleted shim modules.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-26 00:19:13 +02:00
parent 5f2ed44654
commit eecb5472dd
68 changed files with 132 additions and 132 deletions

View File

@@ -48,7 +48,7 @@ except ImportError:
pass
try:
from training_export_service import ( # noqa: F401
from training.export_service import ( # noqa: F401
TrainingExportService,
TrainingSample,
get_training_export_service,

View File

@@ -57,7 +57,7 @@ except ImportError:
# Try to import Training Export Service
try:
from training_export_service import (
from training.export_service import (
TrainingExportService,
TrainingSample,
get_training_export_service,

View File

@@ -20,7 +20,7 @@ from typing import Optional, List
from datetime import datetime
import uuid
from metrics_db import (
from metrics.db import (
create_ocr_labeling_session,
get_ocr_labeling_sessions,
get_ocr_labeling_session,

View File

@@ -17,7 +17,7 @@ from typing import Optional, List
import uuid
import os
from metrics_db import (
from metrics.db import (
get_ocr_labeling_session,
add_ocr_labeling_item,
get_ocr_labeling_item,
@@ -42,7 +42,7 @@ except ImportError:
pass
try:
from training_export_service import TrainingSample, get_training_export_service
from training.export_service import TrainingSample, get_training_export_service
except ImportError:
pass
@@ -271,7 +271,7 @@ async def run_ocr_for_item(item_id: str):
if ocr_text is None:
raise HTTPException(status_code=500, detail="OCR failed")
from metrics_db import get_pool
from metrics.db import get_pool
pool = await get_pool()
if pool:
async with pool.acquire() as conn: