mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +03:00
Some wiki data tweaks
This commit is contained in:
parent
c93c6af677
commit
6ed63237cc
1 changed files with 5 additions and 2 deletions
|
@ -92,9 +92,10 @@ def update_wiki(apps, apks, verbose=False):
|
||||||
|
|
||||||
wikidata += "=Versions=\n"
|
wikidata += "=Versions=\n"
|
||||||
if len(apklist) == 0:
|
if len(apklist) == 0:
|
||||||
wikidata += "We currently have no versions of this app available.\n\n"
|
wikidata += "We currently have no versions of this app available."
|
||||||
elif not gotcurrentver:
|
elif not gotcurrentver:
|
||||||
wikidata += "We don't have the current version of this app.\n\n"
|
wikidata += "We don't have the current version of this app."
|
||||||
|
wikidata += " (Check mode: " + app['Update Check Mode'] + ")\n\n"
|
||||||
if len(app['Current Version']) > 0:
|
if len(app['Current Version']) > 0:
|
||||||
wikidata += "The current (recommended) version is " + app['Current Version']
|
wikidata += "The current (recommended) version is " + app['Current Version']
|
||||||
wikidata += " (version code " + app['Current Version Code'] + ").\n\n"
|
wikidata += " (version code " + app['Current Version Code'] + ").\n\n"
|
||||||
|
@ -118,6 +119,8 @@ def update_wiki(apps, apks, verbose=False):
|
||||||
wikidata += "\n[[Category:Apps we can't update]]\n"
|
wikidata += "\n[[Category:Apps we can't update]]\n"
|
||||||
elif not gotcurrentver and not app['Disabled']:
|
elif not gotcurrentver and not app['Disabled']:
|
||||||
wikidata += '\n[[Category:Apps to Update]]\n'
|
wikidata += '\n[[Category:Apps to Update]]\n'
|
||||||
|
if app['Update Check Mode'] == 'None':
|
||||||
|
wikidata += '\n[[Category:Apps with no update check]]\n'
|
||||||
|
|
||||||
# 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