home · contact · privacy
Fix broken SQL code.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 15 Nov 2024 04:09:39 +0000 (05:09 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 15 Nov 2024 04:09:39 +0000 (05:09 +0100)
ytplom.py

index fd52f3ed7adb02d3fb0b4a739d075b4e5be3bf89..22af6845955fd98b4b377753a4fbc97b22a21fb9 100755 (executable)
--- a/ytplom.py
+++ b/ytplom.py
@@ -243,7 +243,7 @@ class VideoData(DbData):
                           query_id: QueryId
                           ) -> list[Self]:
         """Return all videos for query of query_id."""
-        sql = SqlText('SELECT video_id'
+        sql = SqlText('SELECT video_id '
                       'FROM yt_query_results WHERE query_id = ?')
         video_ids = conn.exec(sql, (query_id,)).fetchall()
         return [cls.get_one(conn, video_id_tup[0])