Update version to 1.0rc7 - Add artist image URL to song endpoint

This commit is contained in:
Esa Kataja
2025-05-16 18:39:42 +03:00
parent 9c5edd1e44
commit cbd6ae9aa1
8 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -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
View File
@@ -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"],
+1
View File
@@ -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"])