Revision: 8730 Author: xqt Date: 2010-11-16 13:58:47 +0000 (Tue, 16 Nov 2010) Log Message: ----------- assign site first, which is needed for getdate()
Modified Paths: -------------- trunk/pywikipedia/statistics_in_wikitable.py
Modified: trunk/pywikipedia/statistics_in_wikitable.py =================================================================== --- trunk/pywikipedia/statistics_in_wikitable.py 2010-11-16 12:24:39 UTC (rev 8729) +++ trunk/pywikipedia/statistics_in_wikitable.py 2010-11-16 13:58:47 UTC (rev 8730) @@ -38,8 +38,8 @@ """ self.screen = screen self.your_page = your_page + self.site = pywikibot.getSite() self.dict = self.getdata() # Try to get data. - self.site = pywikibot.getSite()
def run(self): if self.screen:
pywikipedia-svn@lists.wikimedia.org