Bugs item #3066765, was opened at 2010-09-15 13:02
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=306676…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Pending
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Dmitry Nikitin (dmitrynikitin)
Assigned to: xqt (xqt)
Summary: clean_sandbox.py: TypeError: 'int' object is unsubscriptable
Initial Comment:
>python clean_sandbox.py
Traceback (most
recent call last):
File "clean_sandbox.py", line 212, in <module>
main()
File "clean_sandbox.py", line 206, in main
bot.run()
File "clean_sandbox.py", line 170, in run
diff = minutesDiff(sandboxPage.editTime(), time.strftime("%Y%m%d%H%M%S",
time.gmtime()))
File "clean_sandbox.py", line 138, in minutesDiff
t1 = (((int(time1[0:4]) * 12 + int(time1[4:6])) * 30 +
TypeError: 'int' object is unsubscriptable
-------------------------------------------------------
Pywikipedia [http] trunk/pywikipedia (r8560, 2010/09/15, 10:11:05)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-09-15 19:44
Message:
hm, there is nothing left to do and the editTime() has gone. Please come
back if this bug occures again
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2010-09-15 19:32
Message:
>python clean_sandbox.py -verbose -lang:ru
Pywikipediabot [http] trunk/pywikipedia (r8564, 2010/09/15, 17:16:53)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
Sleeping for 1.0 seconds, 2010-09-15 21:31:10
==== API action:query ====
inprop: protection|talkid|subjectid|url|readable
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: Википедия:Песочница
rvlimit: 1
----------------
Requesting API query from wikipedia:ru
getting huge siprop magicwords...
==== API action:query ====
meta: siteinfo
siprop: magicwords
----------------
Requesting API query from wikipedia:ru
The sandbox is still clean, no change necessary.
Done.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-09-15 19:18
Message:
It seem sandboxPage.editTime() is not valid. Please try 8564 and tell me
the -verbose result (and your sandbox you are working on)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=306676…