Преглед изворни кода

A couple of fixes

tags/v0.1^2
Ben Kurtovic пре 13 година
родитељ
комит
7ef2f034b0
1 измењених фајлова са 6 додато и 3 уклоњено
  1. +6
    -3
      bot/tasks/afc_statistics.py

+ 6
- 3
bot/tasks/afc_statistics.py Прегледај датотеку

@@ -267,7 +267,7 @@ class Task(BaseTask):

query = "SELECT page_id, page_modify_oldid FROM page WHERE page_title = ?"
with self.conn.cursor() as cursor:
cursor.execute(query, (title,))
cursor.execute(query, (title.replace("_", " "),))
try:
pageid, oldid = cursor.fetchall()[0]
except IndexError:
@@ -613,7 +613,10 @@ class Task(BaseTask):
notes += "|no=1" # Submission hasn't been touched in over 4 days

creator = self.site.get_user(c_user)
if creator.blockinfo():
notes += "|nb=1" # Submitter is blocked
try:
if creator.blockinfo():
notes += "|nb=1" # Submitter is blocked
except wiki.UserNotFoundError: # Likely an IP
pass

return notes

Loading…
Откажи
Сачувај