1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Use app categories as wiki categories

This commit is contained in:
Ciaran Gultnieks 2014-01-07 13:39:48 +00:00 committed by Daniel Martí
parent ab1565ac02
commit 41503aa7bc

View File

@ -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...