Fix regression in db seeding
This commit is contained in:
+2
-1
@@ -36,12 +36,13 @@ def seed_db() -> None:
|
|||||||
with get_connection() as conn:
|
with get_connection() as conn:
|
||||||
logger.debug(f"Inserting song {idx + 1} of {len(data)}", item)
|
logger.debug(f"Inserting song {idx + 1} of {len(data)}", item)
|
||||||
conn.execute(
|
conn.execute(
|
||||||
"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, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
|
"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, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
|
||||||
(
|
(
|
||||||
item["artist"],
|
item["artist"],
|
||||||
item["country"],
|
item["country"],
|
||||||
item["title"],
|
item["title"],
|
||||||
item["lyrics_url"],
|
item["lyrics_url"],
|
||||||
|
item["img_url"],
|
||||||
item["artist_url"],
|
item["artist_url"],
|
||||||
item["flag_url"],
|
item["flag_url"],
|
||||||
item["running_order"],
|
item["running_order"],
|
||||||
|
|||||||
Reference in New Issue
Block a user