Jean-Frédéric has submitted this change and it was merged.
Change subject: Remove unexpected parameter from templatesWithParams
......................................................................
Remove unexpected parameter from templatesWithParams
This was failing with:
TypeError: templatesWithParams() got an unexpected keyword argument 'thistxt'
In any case, the text is retrieved from the page itself, isn't it?
What would be the point of passing something − for the textfile usecase?
Change-Id: I1054b76602d76e6cd583ab748e96bf912314989d
---
M erfgoedbot/update_database.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jean-Frédéric: Verified; Looks good to me, approved
diff --git a/erfgoedbot/update_database.py b/erfgoedbot/update_database.py
index 96b5b9d..9b0c3e3 100755
--- a/erfgoedbot/update_database.py
+++ b/erfgoedbot/update_database.py
@@ -447,7 +447,7 @@
if not page:
site = site = pywikibot.Site(countryconfig.get('lang'),
countryconfig.get('project'))
page = pywikibot.Page(site, u'User:Multichill/Zandbak')
- templates = page.templatesWithParams(thistxt=text)
+ templates = page.templatesWithParams()
headerDefaults = {}
for (template, params) in templates:
--
To view, visit https://gerrit.wikimedia.org/r/233223
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1054b76602d76e6cd583ab748e96bf912314989d
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/heritage
Gerrit-Branch: master
Gerrit-Owner: Jean-Frédéric <[email protected]>
Gerrit-Reviewer: Jean-Frédéric <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits