mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
Set state as validated for official apps in official.json
This commit is contained in:
parent
3bee29e94b
commit
ad31bf5ca2
1 changed files with 4 additions and 0 deletions
|
@ -350,6 +350,10 @@ if args.input == "apps.json":
|
||||||
official_apps_dict = {k: v for k, v in result_dict.items() if k in official_apps}
|
official_apps_dict = {k: v for k, v in result_dict.items() if k in official_apps}
|
||||||
community_apps_dict = {k: v for k, v in result_dict.items() if k not in official_apps}
|
community_apps_dict = {k: v for k, v in result_dict.items() if k not in official_apps}
|
||||||
|
|
||||||
|
# We need the official apps to have "validated" as state to be recognized as official
|
||||||
|
for app, infos in official_apps_dict.items():
|
||||||
|
infos["state"] = "validated"
|
||||||
|
|
||||||
with open("official-build.json", 'w') as f:
|
with open("official-build.json", 'w') as f:
|
||||||
f.write(json.dumps(official_apps_dict, sort_keys=True))
|
f.write(json.dumps(official_apps_dict, sort_keys=True))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue