mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Start doing multiple categories as comma separated lists
Don't drop support for old clients (only one category) yet
This commit is contained in:
parent
5644b17048
commit
ee759a3a0e
3 changed files with 8 additions and 9 deletions
|
|
@ -182,9 +182,9 @@ def main():
|
|||
|
||||
ctgs = {}
|
||||
for app in metaapps:
|
||||
if app['Category'] is None:
|
||||
if app['Categories'] is None:
|
||||
continue
|
||||
categories = [c.strip() for c in app['Category'].split(';')]
|
||||
categories = [c.strip() for c in app['Categories'].split(',')]
|
||||
for category in categories:
|
||||
if category in ctgs:
|
||||
ctgs[category] += 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue