style: Format code for consistency and readability across TTS modules
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user