Skip to content

Commit 6e278ea

Browse files
committed
archiver: Fix page_title query escaping
Change-Id: I91505153b1972c76367cc3d42bc8d6f39cf1d1d3
1 parent 812abec commit 6e278ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

majavahbot/tasks/task_4_archiver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from page
1818
where
1919
page_namespace in ({namespaces})
20-
and page_title not like '%/%'
20+
and page_title not like '%%/%%'
2121
and page_len > 5000
2222
and page_is_redirect = 0
2323
and not exists (
@@ -71,7 +71,7 @@ def run(self):
7171
return
7272

7373
namespaces = self.get_task_configuration("autosetup_namespaces")
74-
namespace_placeholders = ",".join(["%s"] * len(namespaces))
74+
namespace_placeholders = ", ".join(["%s"] * len(namespaces))
7575

7676
results = replicadb.get_all(
7777
QUERY.format(namespaces=namespace_placeholders), tuple(namespaces)

0 commit comments

Comments
 (0)