Sfoglia il codice sorgente

Fix again.

tags/v0.1^2
Ben Kurtovic 13 anni fa
parent
commit
037d136a4c
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      bot/tasks/afc_statistics.py

+ 3
- 1
bot/tasks/afc_statistics.py Vedi File

@@ -538,6 +538,7 @@ class Task(BaseTask):
result = self.site.sql_query(query, (pageid,))

counter = 0
last = (None, None, None)
for user, ts, revid in result:
counter += 1
if counter > 250:
@@ -546,7 +547,8 @@ class Task(BaseTask):
break
content = self.get_revision_content(revid)
if content and not re.search(search, content, re.I):
return user, datetime.strptime(ts, "%Y%m%d%H%M%S"), revid
return last
last = (user, datetime.strptime(ts, "%Y%m%d%H%M%S"), revid)

return None, None, None



Caricamento…
Annulla
Salva