Xqt added a comment.
@jayvdb I have a script which removes signed entries on voting pages after a delay of "6 months". This may be 181-184 days.
Another needed feature is to calculate months from a Timestamp difference, which is the inverse of the above. This should be the same as mw does when displaying blocking durations.
TASK DETAIL
https://phabricator.wikimedia.org/T73124
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Xqt, Legoktm, jayvdb, Multichill, XZise, pywikipedia-bugs
Xqt created this task.
Xqt added a subscriber: Xqt.
Xqt added a project: pywikibot-redirect.py.
TASK DESCRIPTION
Processing a single page InterwikiRedirectPage exception should be skipped instead raising the exception:
c:\Pywikipedia\ssh\pywikibot\core>pwb.py redirect do -page:user:xqt/Labor -simul
ate
>>> Benutzer:Xqt/Labor <<<
10
pdc:user:Labor
{u'Benutzer:Xqt/Labor': {'section': '', 'title': u'pdc:user:Labor'}}
Traceback (most recent call last):
File "C:\Pywikipedia\ssh\pywikibot\core\pwb.py", line 222, in <module>
run_python_file(filename, argv, argvu, file_package)
File "C:\Pywikipedia\ssh\pywikibot\core\pwb.py", line 81, in run_python_file
main_mod.__dict__)
File "C:\Pywikipedia\ssh\pywikibot\core\scripts\redirect.py", line 813, in <module>
main()
File "C:\Pywikipedia\ssh\pywikibot\core\scripts\redirect.py", line 810, in main
bot.run()
File "C:\Pywikipedia\ssh\pywikibot\core\scripts\redirect.py", line 709, in run
self.fix_double_redirects()
File "C:\Pywikipedia\ssh\pywikibot\core\scripts\redirect.py", line 523, in fix_double_redirects
self.fix_1_double_redirect(redir_name)
File "C:\Pywikipedia\ssh\pywikibot\core\scripts\redirect.py", line 537, in fix_1_double_redirect
targetPage = newRedir.getRedirectTarget()
File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\page.py", line 1363, in getRedirectTarget
return self.site.getredirtarget(self)
File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\site.py", line 2517, in getredirtarget
raise InterwikiRedirectPage(page, target)
pywikibot.exceptions.InterwikiRedirectPage: Page redirects to a page on another Site.
Page: [[de:Benutzer:Xqt/Labor]]
Target page: [[pdc:Yuuser:Labor]] on wikipedia:pdc.
<class 'pywikibot.exceptions.InterwikiRedirectPage'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
c:\Pywikipedia\ssh\pywikibot\core>
TASK DETAIL
https://phabricator.wikimedia.org/T85693
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikipedia-bugs