mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +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
|
|
@ -256,8 +256,7 @@ def main():
|
|||
for app in metaapps:
|
||||
if app['AntiFeatures'] is None:
|
||||
continue
|
||||
antifeatures = [a.strip() for a in app['AntiFeatures'].split(',')]
|
||||
for antifeature in antifeatures:
|
||||
for antifeature in app['AntiFeatures']:
|
||||
afs[antifeature] += 1
|
||||
with open('stats/antifeatures.txt', 'w') as f:
|
||||
for antifeature, count in afs.most_common():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue