From: Ciaran Gultnieks Date: Tue, 7 Jan 2014 13:39:48 +0000 (+0000) Subject: Use app categories as wiki categories X-Git-Tag: 0.1~44 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3ecf0e437382d43e3f36ee9459900345e934b6d7;p=fdroidserver.git Use app categories as wiki categories --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 45d6ae50..e08f397a 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -187,6 +187,8 @@ def update_wiki(apps, apks): wikidata += '\n[[Category:Apps that are disabled]]\n' if app['Update Check Mode'] == 'None' and not app['Disabled']: wikidata += '\n[[Category:Apps with no update check]]\n' + for appcat in [c.strip() for c in app['Categories'].split(',')]: + wikidata += '\n[[Category:{0}]]\n'.format(appcat) # We can't have underscores in the page name, even if they're in # the package ID, because MediaWiki messes with them...