소스 검색

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:


불러오는 중...
취소
저장