Ricordisamoa has uploaded a new change for review.
https://gerrit.wikimedia.org/r/277468
Change subject: HarvestRobot: support external identifiers like strings
......................................................................
HarvestRobot: support external identifiers like strings
Bug: T129970
Change-Id: Ifb76c397e91ba7937712c3559ae9b9147958ebae
---
M scripts/harvest_template.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/68/277468/1
diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index f6b5dcd..569b25f 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -185,7 +185,7 @@
continue
claim.setTarget(linked_item)
- elif claim.type == 'string':
+ elif claim.type in ('string', 'external-id'):
claim.setTarget(value.strip())
elif claim.type == 'commonsMedia':
commonssite = pywikibot.Site("commons",
"commons")
--
To view, visit https://gerrit.wikimedia.org/r/277468
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb76c397e91ba7937712c3559ae9b9147958ebae
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits