Lokal Profil has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/295579

Change subject: Add category to "Unknown fields" reports
......................................................................

Add category to "Unknown fields" reports

Change-Id: Id738dfba2c2a3c003be73823d79bcc6f5f21febd
---
M erfgoedbot/update_database.py
1 file changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/heritage 
refs/changes/79/295579/1

diff --git a/erfgoedbot/update_database.py b/erfgoedbot/update_database.py
index f337d2a..b903b90 100755
--- a/erfgoedbot/update_database.py
+++ b/erfgoedbot/update_database.py
@@ -216,12 +216,13 @@
         site, u'Commons:Monuments database/Unknown fields/%s' % 
(countryconfig.get('table'),))
 
     text = u'{| class="wikitable sortable"\n'
-    text = text + u'! Field !! Count\n'
+    text += u'! Field !! Count\n'
     for key, value in unknownFields.items():
-        text = text + u'|-\n'
-        text = text + u'| %s || %s\n' % (key, value)
+        text += u'|-\n'
+        text += u'| %s || %s\n' % (key, value)
 
-    text = text + u'|}'
+    text += u'|}\n'
+    text += u'[[Category:Commons:Monuments database/Unknown fields]]'
     comment = u'Updating the list of unknown fields'
     page.put(text, comment)
 

-- 
To view, visit https://gerrit.wikimedia.org/r/295579
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id738dfba2c2a3c003be73823d79bcc6f5f21febd
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/heritage
Gerrit-Branch: master
Gerrit-Owner: Lokal Profil <lokal.pro...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to