Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F12454
userlib_commenthidden.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 2:31 AM
2014-11-22 02:31:21 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
userlib_commenthidden.patch
View Options
Index: userlib.py
===================================================================
--- userlib.py (Revision 8682)
+++ userlib.py (Arbeitskopie)
@@ -294,9 +294,14 @@
raise pywikibot.Error
for contrib in result['query']['usercontribs']:
ts = pywikibot.parsetime2stamp(contrib['timestamp'])
- yield (pywikibot.Page(self.site(), contrib['title'], defaultNamespace=contrib['ns']),
- contrib['revid'], ts, contrib['comment']
- )
+ if 'commenthidden' in contrib:
+ yield (pywikibot.Page(self.site(), contrib['title'], defaultNamespace=contrib['ns']),
+ contrib['revid'], ts, u''
+ )
+ else:
+ yield (pywikibot.Page(self.site(), contrib['title'], defaultNamespace=contrib['ns']),
+ contrib['revid'], ts, contrib['comment']
+ )
nbresults += 1
if nbresults >= limit:
break
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
11906
Default Alt Text
userlib_commenthidden.patch (1 KB)
Attached To
Mode
T57673: Migrate "DrTrigon's tools" (pywikibot/bots/drtrigonbot) bugs from JIRA (TS) to Bugzilla (set up product etc)
Attached
Detach File
Event Timeline
Log In to Comment