mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-09-19 20:24:43 -04:00
CONCAT
This commit is contained in:
parent
92a6cacb5f
commit
c0db5b9403
1 changed files with 2 additions and 2 deletions
|
@ -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
|
seed = site.metadata.ait_seed_id if site.metadata.ait_seed_id else None
|
||||||
if account_id and seed and source:
|
if account_id and seed and source:
|
||||||
pg_query = (
|
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,
|
account_id,
|
||||||
seed,
|
seed,
|
||||||
|
@ -436,7 +436,7 @@ def get_video_captures(site, source=None):
|
||||||
)
|
)
|
||||||
elif seed:
|
elif seed:
|
||||||
pg_query = (
|
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),
|
(seed, source),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue