jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Ignore references in harvest_template.py

Bug: T227954
Change-Id: I6fcdb342728fecfccd9dca24126698cd0a877d02
---
M scripts/harvest_template.py
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index 94404eb..16edcd9 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -267,7 +267,10 @@
# We found the template we were looking for
for field, value in fielddict.items():
field = field.strip()
- value = value.strip()
+ # todo: extend the list of tags to ignore
+ value = textlib.removeDisabledParts(
+ # todo: eventually we may want to import the references
+ value, tags=['ref'], site=page.site).strip()
if not field or not value:
continue


To view, visit change 522734. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6fcdb342728fecfccd9dca24126698cd0a877d02
Gerrit-Change-Number: 522734
Gerrit-PatchSet: 1
Gerrit-Owner: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)