style: Format code for consistency and readability across TTS modules

This commit is contained in:
JSC
2025-09-21 18:05:20 +02:00
parent 50eeae4c62
commit d3b6e90262
11 changed files with 36 additions and 27 deletions

View File

@@ -1,6 +1,7 @@
"""TTS repository for database operations."""
from typing import Any, Sequence
from collections.abc import Sequence
from typing import Any
from sqlmodel import select
@@ -29,6 +30,7 @@ class TTSRepository(BaseRepository[TTS]):
Returns:
List of TTS records
"""
stmt = (
select(self.model)
@@ -53,10 +55,11 @@ class TTSRepository(BaseRepository[TTS]):
Returns:
TTS record if found and belongs to user, None otherwise
"""
stmt = select(self.model).where(
self.model.id == tts_id,
self.model.user_id == user_id,
)
result = await self.session.exec(stmt)
return result.first()
return result.first()