jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: Ifb76c397e91ba7937712c3559ae9b9147958ebae
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits