mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03:00
Make app['Categories'] a list, get unique categories via a set
This commit is contained in:
parent
be7c6aceec
commit
3483bad392
3 changed files with 10 additions and 13 deletions
|
|
@ -204,10 +204,7 @@ def main():
|
|||
logging.info("Processing categories...")
|
||||
ctgs = Counter()
|
||||
for app in metaapps:
|
||||
if app['Categories'] is None:
|
||||
continue
|
||||
categories = [c.strip() for c in app['Categories'].split(',')]
|
||||
for category in categories:
|
||||
for category in app['Categories']:
|
||||
ctgs[category] += 1;
|
||||
f = open('stats/categories.txt', 'w')
|
||||
for category in ctgs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue