From c0db5b94030dd36d379b7a7fb10db57df3f78042 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Fri, 20 Jun 2025 17:57:03 -0700 Subject: [PATCH] CONCAT --- brozzler/ydl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brozzler/ydl.py b/brozzler/ydl.py index b406311..728b395 100644 --- a/brozzler/ydl.py +++ b/brozzler/ydl.py @@ -427,7 +427,7 @@ def get_video_captures(site, source=None): seed = site.metadata.ait_seed_id if site.metadata.ait_seed_id else None if account_id and seed and source: pg_query = ( - "SELECT containing_page_url from video where account_id = %s and seed = %s and containing_page_url like '%'+%s+'%'", + "SELECT containing_page_url from video where account_id = %s and seed = %s and containing_page_url like CONCAT('%',%s,'%')", ( account_id, seed, @@ -436,7 +436,7 @@ def get_video_captures(site, source=None): ) elif seed: pg_query = ( - "SELECT containing_page_url from video where seed = %s and containing_page_url like '%'+%s+'%'", + "SELECT containing_page_url from video where seed = %s and containing_page_url like CONCAT('%',%s,'%')", (seed, source), ) else: