mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +03:00
convert internal representation of AntiFeatures to list
The AntiFeatures metadata is a comma-separated list of tags, like Categories, so it should also be stored internally as a list. This makes parsing XML and JSON easier. The test cases' .pickle files look like they change a lot, but they really don't, its only the change of default AntiFeatures value from None to []
This commit is contained in:
parent
cc29d39f0a
commit
2831b3e93f
5 changed files with 2109 additions and 2134 deletions
|
@ -92,8 +92,8 @@ def update_wiki(apps, sortedids, apks):
|
|||
wikidata = ''
|
||||
if app['Disabled']:
|
||||
wikidata += '{{Disabled|' + app['Disabled'] + '}}\n'
|
||||
if app['AntiFeatures']:
|
||||
for af in app['AntiFeatures'].split(','):
|
||||
if 'AntiFeatures' in app:
|
||||
for af in app['AntiFeatures']:
|
||||
wikidata += '{{AntiFeature|' + af + '}}\n'
|
||||
wikidata += '{{App|id=%s|name=%s|added=%s|lastupdated=%s|source=%s|tracker=%s|web=%s|changelog=%s|donate=%s|flattr=%s|bitcoin=%s|litecoin=%s|dogecoin=%s|license=%s|root=%s}}\n' % (
|
||||
appid,
|
||||
|
@ -847,7 +847,7 @@ def make_index(apps, sortedids, apks, repodir, archive, categories):
|
|||
addElement('marketvercode', app['Current Version Code'], doc, apel)
|
||||
|
||||
if app['AntiFeatures']:
|
||||
af = app['AntiFeatures'].split(',')
|
||||
af = app['AntiFeatures']
|
||||
if af:
|
||||
addElementNonEmpty('antifeatures', ','.join(af), doc, apel)
|
||||
if app['Provides']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue