Fixing build

This commit is contained in:
Mistral Vibe
2026-04-10 10:23:32 +02:00
parent 6f77bb8c42
commit 411414b9c1
35 changed files with 141 additions and 134 deletions

View File

@@ -1,6 +1,7 @@
from __future__ import annotations
import uuid
from datetime import UTC
from typing import Any
from sqlalchemy import and_, select
@@ -31,9 +32,9 @@ class AnnotationRepository(BaseRepository[Annotation]):
return list(result.scalars().all())
async def soft_delete(self, annotation: Annotation) -> None:
from datetime import datetime, timezone
from datetime import datetime
annotation.deleted_at = datetime.now(timezone.utc)
annotation.deleted_at = datetime.now(UTC)
await self.session.flush()
async def search_ranges(
@@ -45,7 +46,7 @@ class AnnotationRepository(BaseRepository[Annotation]):
tag: str | None = None,
min_duration_ms: int | None = None,
) -> list[dict[str, Any]]:
from rehearsalhub.db.models import AudioVersion, RangeAnalysis, Song
from rehearsalhub.db.models import AudioVersion, Song
conditions = [
Song.band_id == band_id,