From: Christian Heller Date: Fri, 21 Feb 2025 01:22:23 +0000 (+0100) Subject: Fix /yt_result showing _all_ queries (within cut-off range) as linked. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/booking/static/%7B%7Bdb.prefix%7D%7D/calendar?a=commitdiff_plain;p=ytplom Fix /yt_result showing _all_ queries (within cut-off range) as linked. --- diff --git a/src/ytplom/http.py b/src/ytplom/http.py index 280b88c..85c25b4 100644 --- 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 = [ - 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)