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 <wikipo...@gmail.com> wrote:

> Of course I meant protect, not block.
>
> Bináris <wikipo...@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.BasePage.protect
>> 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-le...@lists.wikimedia.org
>
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

Reply via email to