From 037d136a4cb34383dd8440d5e9cab964393af42d Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 6 Nov 2011 17:10:36 -0500 Subject: [PATCH] Fix again. --- bot/tasks/afc_statistics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/tasks/afc_statistics.py b/bot/tasks/afc_statistics.py index c7fabe6..4a8a3ce 100644 --- a/bot/tasks/afc_statistics.py +++ b/bot/tasks/afc_statistics.py @@ -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