From: Christian Heller Date: Fri, 15 Nov 2024 04:09:39 +0000 (+0100) Subject: Fix broken SQL code. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/edit?a=commitdiff_plain;h=c81b6401aea1ed3d14c169065aba844013e317b4;p=ytplom Fix broken SQL code. --- diff --git a/ytplom.py b/ytplom.py index fd52f3e..22af684 100755 --- 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])