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:
88b35f9
)
Fix /yt_result showing _all_ queries (within cut-off range) as linked.
master
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 21 Feb 2025 01:22:23 +0000
(
02:22
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 21 Feb 2025 01:22:23 +0000
(
02:22
+0100)
src/ytplom/http.py
patch
|
blob
|
history
diff --git
a/src/ytplom/http.py
b/src/ytplom/http.py
index 280b88c7fdbf7da243e4824406e620601dec84c1..85c25b476b870bae9133c1d1d505eb4c259679d5 100644
(file)
--- a/
src/ytplom/http.py
+++ b/
src/ytplom/http.py
@@
-368,7
+368,7
@@
class _TaskHandler(PlomHttpHandler):
video_id = YoutubeId(self.path_toks[2])
with DbConn() as conn:
linked_queries = [
video_id = YoutubeId(self.path_toks[2])
with DbConn() as conn:
linked_queries = [
- q for q in YoutubeQuery.get_all
(conn
)
+ q for q in YoutubeQuery.get_all
_for_video(conn, video_id
)
if q.retrieved_at > self.server.config.queries_cutoff]
try:
video_data = YoutubeVideo.get_one(conn, video_id)
if q.retrieved_at > self.server.config.queries_cutoff]
try:
video_data = YoutubeVideo.get_one(conn, video_id)