JAnD created this task.
JAnD added a project: Pywikibot-Wikidata.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

pwb.py harvest_template -template:Foo "Bar" P123

when is imported incorrect value and somebody deletes it on WIkidata only, on next run bot will reimport this from Wikipedia. In some cases there should be reverting war.

Scripts should check if there was not recently deleted this property with same value

some kind of this control (but without checking value) was in
https://www.wikidata.org/wiki/User:Underlying_lk/harvest_template.py

                    if str(item.getVersionHistory(total=50)).find("wbremoveclaims-remove:1| */ [[Property:" + pid) is not -1:
                        pywikibot.output('%s cannot be added as it was recently removed from the item' % (pid,))
                    else:
                        claim = wdhelper.matchDatatype(pid, value, page, item)

}

TASK DETAIL
https://phabricator.wikimedia.org/T170719

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JAnD
Cc: Aklapper, JAnD, pywikibot-bugs-list, Ricordisamoa
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to