mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
Use app categories as wiki categories
This commit is contained in:
parent
2ac595e4ec
commit
3ecf0e4373
1 changed files with 2 additions and 0 deletions
|
@ -187,6 +187,8 @@ def update_wiki(apps, apks):
|
||||||
wikidata += '\n[[Category:Apps that are disabled]]\n'
|
wikidata += '\n[[Category:Apps that are disabled]]\n'
|
||||||
if app['Update Check Mode'] == 'None' and not app['Disabled']:
|
if app['Update Check Mode'] == 'None' and not app['Disabled']:
|
||||||
wikidata += '\n[[Category:Apps with no update check]]\n'
|
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
|
# We can't have underscores in the page name, even if they're in
|
||||||
# the package ID, because MediaWiki messes with them...
|
# the package ID, because MediaWiki messes with them...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue