Hi all,
i'm working on a bot whose task is to add some SDC claims to the
mediainfo of Commons file pages. While there's a method removeClaims()
(see
https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.html#pywikibot.MediaInfo.removeClaims)
to remove multiple claims in one step, its counterpart addClaim() (see
https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.html#pywikibot.MediaInfo.addClaim)
doesn't accept a list of claims to add. This results in separate API
calls (?) for each single claim top add. Is there a factual reason for
that difference? Is there a different way to add multiple SDC claims in
one edit step?
Thanks in advance!
Florian
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/ELXJJ4GGAJXP6JROEZPLCAGGQZBJL2W6/
To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org