https://bugzilla.wikimedia.org/show_bug.cgi?id=55294
Web browser: --- Bug ID: 55294 Summary: Issue in userlib.py Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1063/ Reported by: nakor-wikipedia Created on: 2009-10-31 20:53:12 Subject: Issue in userlib.py Original description: userlib.contributions() changed the format it outputs. Please revert to the previous format %Y-%m-%dT%H:%M:%SZ .
The new format should be proposed as an option. Just changing the format without compatibility breaks existing scripts.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55294
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Below is the patch for fixing this issue:
Index: userlib.py =================================================================== --- userlib.py (revision 7576) +++ userlib.py (working copy) @@ -249,7 +249,7 @@ for c in result['query']['usercontribs']: yield (wikipedia.Page(self.site(), c['title'], defaultNamespace=c['ns']), c['revid'], - wikipedia.parsetime2stamp(c['timestamp']), + c['timestamp'], c['comment'] ) nbresults += 1
https://bugzilla.wikimedia.org/show_bug.cgi?id=55294
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Here is the patch for fixing this issue. Please commit it.
Index: userlib.py =================================================================== --- userlib.py (revision 7869) +++ userlib.py (working copy) @@ -223,7 +223,7 @@ for c in result['query']['usercontribs']: yield (wikipedia.Page(self.site(), c['title'], defaultNamespace=c['ns']), c['revid'], - wikipedia.parsetime2stamp(c['timestamp']), + c['timestamp'], c['comment'] ) nbresults += 1
https://bugzilla.wikimedia.org/show_bug.cgi?id=55294
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1063
https://bugzilla.wikimedia.org/show_bug.cgi?id=55294
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |ladsgroup@gmail.com
--- Comment #3 from Amir Ladsgroup ladsgroup@gmail.com --- I was able to reproduce
https://bugzilla.wikimedia.org/show_bug.cgi?id=55294
Ricordisamoa ricordisamoa@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Issue in userlib.py |Issue with timestamp format | |in userlib.py
pywikipedia-bugs@lists.wikimedia.org