Update version to 1.0rc7 - Add artist image URL to song endpoint
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ from lib.db import init_db
|
||||
app = FastAPI(
|
||||
title="Eurovision 25 Homereview API",
|
||||
description="Backend API for Eurovision 25 Homereview application",
|
||||
version="1.0rc6",
|
||||
version="1.0rc7",
|
||||
openapi_url="/sec_schema.json",
|
||||
docs_url="/docut",
|
||||
redoc_url=None,
|
||||
|
||||
+1
-2
@@ -36,13 +36,12 @@ def seed_db() -> None:
|
||||
with get_connection() as conn:
|
||||
logger.debug(f"Inserting song {idx + 1} of {len(data)}", item)
|
||||
conn.execute(
|
||||
"INSERT INTO Song (year, artist, country, title, lyrics_url, img_url, artist_url, flag_url, running_order, lyrics_original, lyrics_translation_fi, tags, confidence, language) VALUES (2025, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
|
||||
"INSERT INTO Song (year, artist, country, title, lyrics_url, artist_url, flag_url, running_order, lyrics_original, lyrics_translation_fi, tags, confidence, language) VALUES (2025, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
|
||||
(
|
||||
item["artist"],
|
||||
item["country"],
|
||||
item["title"],
|
||||
item["lyrics_url"],
|
||||
item["img_url"],
|
||||
item["artist_url"],
|
||||
item["flag_url"],
|
||||
item["running_order"],
|
||||
|
||||
@@ -5,6 +5,7 @@ from models.msg import Message
|
||||
from lib.db import get_connection
|
||||
from lib.logger import logger
|
||||
from lib.helpers import hash_password
|
||||
from datetime import datetime
|
||||
|
||||
router = APIRouter(prefix="/users", tags=["users"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user