mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
only set 'No description available' in the old index format
The new index format aims to be a direct representation of the data, then the clients/website will handle the rest.
This commit is contained in:
parent
1bc0ec27c0
commit
3afd6ca684
2 changed files with 5 additions and 4 deletions
|
|
@ -831,9 +831,6 @@ def post_metadata_parse(app):
|
|||
build[k] = str(v)
|
||||
builds.append(build)
|
||||
|
||||
if not app.get('Description'):
|
||||
app['Description'] = 'No description available'
|
||||
|
||||
app.builds = sorted_builds(builds)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1159,8 +1159,12 @@ def make_index(apps, sortedids, apks, repodir, archive):
|
|||
return ("fdroid.app:" + appid, apps[appid].Name)
|
||||
raise MetaDataException("Cannot resolve app id " + appid)
|
||||
|
||||
if app.get('Description'):
|
||||
description = app.Description
|
||||
else:
|
||||
description = 'No description available'
|
||||
addElement('desc',
|
||||
metadata.description_html(app.Description, linkres),
|
||||
metadata.description_html(description, linkres),
|
||||
doc, apel)
|
||||
addElement('license', app.License, doc, apel)
|
||||
if app.Categories:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue