chiark / gitweb /
Use individual antifeature template on wiki
authorCiaran Gultnieks <ciaran@ciarang.com>
Sun, 17 Nov 2013 12:05:02 +0000 (12:05 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Sun, 17 Nov 2013 12:05:02 +0000 (12:05 +0000)
fdroidserver/update.py

index 30c77c4a5b8af821539f11758639b28804ad36f4..41a1a2997555ddca1f208ef99fe417dfde583cef 100644 (file)
@@ -53,8 +53,8 @@ def update_wiki(apps, apks):
         wikidata = ''
         if app['Disabled']:
             wikidata += '{{Disabled|' + app['Disabled'] + '}}\n'
-        if app['AntiFeatures']:
-            wikidata += '{{AntiFeatures|' + app['AntiFeatures'] + '}}\n'
+        for af in app.get('AntiFeatures', []).split(','):
+            wikidata += '{{AntiFeature|' + af + '}}\n'
         wikidata += '{{App|id=%s|name=%s|added=%s|lastupdated=%s|source=%s|tracker=%s|web=%s|donate=%s|flattr=%s|bitcoin=%s|litecoin=%s|license=%s|root=%s}}\n'%(
                 app['id'],
                 app['Name'],