浏览代码

Fix title thing again.

tags/v0.1^2
Ben Kurtovic 12 年前
父节点
当前提交
031660bf57
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      bot/tasks/afc_statistics.py

+ 2
- 1
bot/tasks/afc_statistics.py 查看文件

@@ -270,9 +270,10 @@ class Task(BaseTask):
if not title:
return

title = title.replace("_", " ")
query = "SELECT page_id, page_modify_oldid FROM page WHERE page_title = ?"
with self.conn.cursor() as cursor:
cursor.execute(query, (title.replace("_", " "),))
cursor.execute(query, (title,))
try:
pageid, oldid = cursor.fetchall()[0]
except IndexError:


正在加载...
取消
保存