Revision: 4077
Author: misza13
Date: 2007-08-19 16:02:25 +0000 (Sun, 19 Aug 2007)
Log Message:
-----------
fix bug that would cause the bot to discard remaining threads on a page with only few
threads left (introduced in yesterday's updates)
Modified Paths:
--------------
trunk/pywikipedia/archivebot.py
Modified: trunk/pywikipedia/archivebot.py
===================================================================
--- trunk/pywikipedia/archivebot.py 2007-08-19 13:25:51 UTC (rev 4076)
+++ trunk/pywikipedia/archivebot.py 2007-08-19 16:02:25 UTC (rev 4077)
@@ -326,7 +326,8 @@
whys = []
for t in oldthreads:
if len(oldthreads) - self.archivedThreads <=
int(self.get('minthreadsleft',5)):
- break #Because there's too little threads left.
+ self.Page.threads.append(t)
+ continue #Because there's too little threads left.
#TODO: Make an option so that unstamped (unsigned) posts get archived.
why = t.shouldBeArchived(self)
if why:
Show replies by date