Hi, in https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#page.... I don't see the time. Can we block for infinity only?
Of course I meant protect, not block.
Bináris wikiposta@gmail.com ezt írta (időpont: 2022. nov. 27., V, 13:23):
Hi, in https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#page.... I don't see the time. Can we block for infinity only?
-- Bináris
Hi Bináris! Time can be passed through the `kwargs` as `expiry` keyword to APISite.protect https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.site.html#pywikibot.site._apisite.APISite.protect .
Expiry of protections can be set via kwargs, see Site.protect() for details.
On Sun, Nov 27, 2022 at 3:55 PM Bináris wikiposta@gmail.com wrote:
Of course I meant protect, not block.
Bináris wikiposta@gmail.com ezt írta (időpont: 2022. nov. 27., V, 13:23):
Hi, in https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#page.... I don't see the time. Can we block for infinity only?
-- Bináris
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
Thank you!
Dalba dalba.wiki@gmail.com ezt írta (időpont: 2022. nov. 27., V, 14:49):
Hi Bináris! Time can be passed through the `kwargs` as `expiry` keyword to APISite.protect https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.site.html#pywikibot.site._apisite.APISite.protect .
Expiry of protections can be set via kwargs, see Site.protect() for details.
On Sun, Nov 27, 2022 at 3:55 PM Bináris wikiposta@gmail.com wrote:
Of course I meant protect, not block.
Bináris wikiposta@gmail.com ezt írta (időpont: 2022. nov. 27., V, 13:23):
Hi, in https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#page.... I don't see the time. Can we block for infinity only?
-- Bináris
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org