|
4 | 4 | import logging |
5 | 5 | from pathlib import Path |
6 | 6 |
|
7 | | -from app.utils.time import utcnow |
8 | | - |
9 | 7 | from fastapi import APIRouter, HTTPException, Request |
10 | 8 | from fastapi.responses import RedirectResponse, StreamingResponse |
11 | 9 | from pydantic import BaseModel |
12 | 10 | from sqlalchemy import func, select |
13 | 11 |
|
14 | 12 | from app.api.deps import DbSession |
15 | 13 | from app.db.models import Track, TrackAnalysis, TrackStatus |
| 14 | +from app.utils.time import utcnow |
16 | 15 |
|
17 | 16 | logger = logging.getLogger(__name__) |
18 | 17 |
|
@@ -215,7 +214,7 @@ async def get_artist_detail( |
215 | 214 | artist_name: The artist name (URL-encoded) |
216 | 215 | refresh_lastfm: Force refresh of Last.fm data |
217 | 216 | """ |
218 | | - from datetime import datetime, timedelta |
| 217 | + from datetime import timedelta |
219 | 218 | from urllib.parse import unquote |
220 | 219 |
|
221 | 220 | from sqlalchemy import cast |
@@ -719,7 +718,6 @@ async def _cache_artist_images( |
719 | 718 | image_urls: dict[str, str], |
720 | 719 | ) -> None: |
721 | 720 | """Cache artist image URLs in ArtistInfo table.""" |
722 | | - from datetime import datetime |
723 | 721 |
|
724 | 722 | from app.db.models import ArtistInfo |
725 | 723 |
|
|
0 commit comments