diff --git a/CHANGES.md b/CHANGES.md index aeb3c7b..cd3d346 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # Eurovision 25 Backend Changelog +## 1.0rc7 (2025-05-16) + +### Features +- Added artist image URL to song endpoint + ## 1.0rc6 (2025-05-16) ### Features diff --git a/README.md b/README.md index deefb76..8159fd6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Eurovision 25 Homereview Backend -**Version: 1.0rc6** +**Version: 1.0rc7** ## Description diff --git a/docker-compose.yml b/docker-compose.yml index b6379a1..5ef2864 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: build: context: . dockerfile: Dockerfile - image: eurovision-25-backend:1.0rc6 + image: eurovision-25-backend:1.0rc7 ports: - "8000:8000" volumes: diff --git a/pyproject.toml b/pyproject.toml index 69f3255..7218851 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "Eurovision-25-backend" -version = "1.0rc6" +version = "1.0rc7" description = "Backend for Eurovision 25" readme = "README.md" requires-python = ">=3.12" diff --git a/src/app.py b/src/app.py index fdee02c..c9dc5f3 100644 --- a/src/app.py +++ b/src/app.py @@ -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, diff --git a/src/lib/db.py b/src/lib/db.py index cee89ee..003bd8a 100644 --- a/src/lib/db.py +++ b/src/lib/db.py @@ -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"], diff --git a/src/routes/users.py b/src/routes/users.py index f6070d9..2a96564 100644 --- a/src/routes/users.py +++ b/src/routes/users.py @@ -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"]) diff --git a/uv.lock b/uv.lock index c2b3196..dc8c6e8 100644 --- a/uv.lock +++ b/uv.lock @@ -131,7 +131,7 @@ wheels = [ [[package]] name = "eurovision-25-backend" -version = "1.0rc6" +version = "1.0rc7" source = { virtual = "." } dependencies = [ { name = "aiofiles" },