From ad31bf5ca21088b42a3b43b0d1724728df8d188f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 8 Apr 2019 16:01:57 +0200 Subject: [PATCH] Set state as validated for official apps in official.json --- list_builder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/list_builder.py b/list_builder.py index 29ec157..3fc42c7 100755 --- a/list_builder.py +++ b/list_builder.py @@ -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} 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: f.write(json.dumps(official_apps_dict, sort_keys=True))