chiark / gitweb /
Correction to a5fafe6
authorCiaran Gultnieks <ciaran@ciarang.com>
Sun, 17 Nov 2013 12:16:24 +0000 (12:16 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Sun, 17 Nov 2013 12:16:24 +0000 (12:16 +0000)
fdroidserver/update.py

index 41a1a2997555ddca1f208ef99fe417dfde583cef..10e1a91d643f56ff3f7649297bb45c720f3e0f72 100644 (file)
@@ -53,8 +53,9 @@ def update_wiki(apps, apks):
         wikidata = ''
         if app['Disabled']:
             wikidata += '{{Disabled|' + app['Disabled'] + '}}\n'
-        for af in app.get('AntiFeatures', []).split(','):
-            wikidata += '{{AntiFeature|' + af + '}}\n'
+        if app['AntiFeatures']:
+            for af in app['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'],