mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
list_builder: fix subtags not being a list, breaking yunohost
This commit is contained in:
parent
ecf66bcb66
commit
caec92a8b4
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ now = time.time()
|
|||
categories = toml.load(open("categories.toml"))
|
||||
for category_id, infos in categories.items():
|
||||
infos["id"] = category_id
|
||||
for subtag_id, subtag_infos in infos.get("subtags", {}).items():
|
||||
subtag_infos["id"] = subtag_id
|
||||
infos["subtags"] = list(infos.get('subtags', {}).values())
|
||||
|
||||
categories = list(categories.values())
|
||||
|
||||
# (Same for antifeatures)
|
||||
|
|
Loading…
Add table
Reference in a new issue