Cleanup: Delete ALL 242 shims, update ALL consumer imports
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 41s
CI / test-go-edu-search (push) Successful in 32s
CI / test-python-klausur (push) Failing after 2m41s
CI / test-python-agent-core (push) Successful in 34s
CI / test-nodejs-website (push) Successful in 39s
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 41s
CI / test-go-edu-search (push) Successful in 32s
CI / test-python-klausur (push) Failing after 2m41s
CI / test-python-agent-core (push) Successful in 34s
CI / test-nodejs-website (push) Successful in 39s
klausur-service: 183 shims deleted, 26 test files + 8 source files updated backend-lehrer: 59 shims deleted, main.py + 8 source files updated All imports now use the new package paths directly. Zero shims remaining in the entire codebase. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -121,7 +121,7 @@ async def api_get_word_audio(word_id: str, lang: str = "en"):
|
||||
if not text:
|
||||
raise HTTPException(status_code=400, detail=f"Kein Text fuer Sprache '{lang}'")
|
||||
|
||||
from audio_service import get_or_generate_audio
|
||||
from services.audio import get_or_generate_audio
|
||||
audio_bytes = await get_or_generate_audio(text, language=lang, word_id=word_id)
|
||||
|
||||
if not audio_bytes:
|
||||
@@ -151,7 +151,7 @@ async def api_get_syllable_audio(word_id: str, lang: str = "en"):
|
||||
# Join syllables with pauses (Piper handles "..." as pause)
|
||||
slow_text = " ... ".join(syllables)
|
||||
|
||||
from audio_service import get_or_generate_audio
|
||||
from services.audio import get_or_generate_audio
|
||||
cache_key = f"{word_id}_syl_{lang}"
|
||||
audio_bytes = await get_or_generate_audio(slow_text, language=lang, word_id=cache_key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user