Skip to content

Commit 00a81bb

Browse files
author
Johannes Kroll
committed
fix phabricator ticket #T173822, 'CatGraph on commons missing subcategories'
1 parent 41f70bf commit 00a81bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

catgraph-jsonp.fcgi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def category_title_to_pageid(wiki, title):
4242
cursor= conn.cursor()
4343
cursor.execute("use %s" % (wiki if wiki=='gptest1wiki' else wiki + '_p'))
4444
title_underscores= title.encode('utf-8').replace(' ', '_')
45-
for t in [ [title_underscores.capitalize(), "page_title"], [title_underscores, "page_title"], [title_underscores.lower(), "lower(page_title)"] ]:
45+
for t in [ [title_underscores, "page_title"], [title_underscores.capitalize(), "page_title"], [title_underscores.lower(), "lower(page_title)"] ]:
4646
cursor.execute( "select page_id from page where " + t[1] + "=%s and page_namespace=14", (t[0]) )
4747
res= cursor.fetchall()
4848
if len(res):

0 commit comments

Comments
 (0)