home
·
contact
·
privacy
projects
/
ytplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5f7c12
)
Fix broken SQL code.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 15 Nov 2024 04:09:39 +0000
(
05:09
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 15 Nov 2024 04:09:39 +0000
(
05:09
+0100)
ytplom.py
patch
|
blob
|
history
diff --git
a/ytplom.py
b/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])