Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/293899
Change subject: [bugfix] fix verbose output
......................................................................
[bugfix] fix verbose output
Change-Id: I36d41071c0dd6eef00191264c4cb2ae9b92034cc
---
M checkvotes.py
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/xqbot
refs/changes/99/293899/1
diff --git a/checkvotes.py b/checkvotes.py
index bfb1a9b..ac24702 100644
--- a/checkvotes.py
+++ b/checkvotes.py
@@ -427,7 +427,8 @@
raise Exception
result = rights['Schiedsgericht'] if sg else rights['Allgemeine']
if result is False or config.verbose_output:
- pywikibot.output('\nBenutzer:%s ist nicht stimmberechtigt' %
username)
+ pywikibot.output('\nBenutzer:%s ist%s stimmberechtigt'
+ % (username, '' if result else ' nicht'))
if self.blockinfo: # write blocking info
try:
@@ -530,7 +531,8 @@
# page.getRestrictions() may delete the content
# if revision ID has been changed (bug: T93364)
- restrictions = page.getRestrictions() # TODO: für Prüfung hier
ausschließen
+ # TODO: für Prüfung hier ausschließen
+ restrictions = page.getRestrictions()
if restrictions:
if 'edit' in restrictions and restrictions['edit']:
if 'sysop' in restrictions['edit']:
--
To view, visit https://gerrit.wikimedia.org/r/293899
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I36d41071c0dd6eef00191264c4cb2ae9b92034cc
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/xqbot
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits