Fixing build
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user