Revision: 4383 Author: btongminh Date: 2007-09-29 11:12:09 +0000 (Sat, 29 Sep 2007)
Log Message: ----------- Some small tweaks in examine_revision_history
Modified Paths: -------------- trunk/pywikipedia/image_replacer.py
Modified: trunk/pywikipedia/image_replacer.py =================================================================== --- trunk/pywikipedia/image_replacer.py 2007-09-29 10:49:55 UTC (rev 4382) +++ trunk/pywikipedia/image_replacer.py 2007-09-29 11:12:09 UTC (rev 4383) @@ -142,8 +142,8 @@ def examine_revision_history(self, revisions, replacement, username): for revision in revisions: - if replacement.group(0) in revision['content']: - db_time = db_timestamp(timestamp) + if replacement.group(0) in revision['*']: + db_time = db_timestamp(revision['timestamp']) if db_time < self.first_revision or not self.first_revision: self.first_revision = int(db_time) return (db_time, strip_image(replacement.group(1)),