From d179631d15332913e952872370a4eb6b45b2242d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 31 Oct 2024 16:12:30 +0100 Subject: [PATCH] Stop getting main CI, use bookworm --- app.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index d5209ea..283ec97 100644 --- a/app.py +++ b/app.py @@ -41,6 +41,8 @@ app = Flask(__name__, static_url_path="/assets", static_folder="assets") +MAIN_CI = "bookworm" + try: config = toml.loads(open("config.toml").read()) except Exception as e: @@ -516,14 +518,14 @@ def charts(): [ infos for infos in dashboard_data.values() - if infos.get("ci_results", {}).get("main").get("level") == i + if infos.get("ci_results", {}).get(MAIN_CI).get("level") == i ] ) level_summary["unknown"] = len( [ infos for infos in dashboard_data.values() - if infos.get("ci_results", {}).get("main").get("level") in [None, "?"] + if infos.get("ci_results", {}).get(MAIN_CI).get("level") in [None, "?"] ] ) @@ -566,7 +568,7 @@ def badge(app, type="integration"): catalog_level = catalog.get(app, {}).get("level") main_ci_level = ( - data.get(app, {}).get("ci_results", {}).get("main", {}).get("level", "?") + data.get(app, {}).get("ci_results", {}).get(MAIN_CI, {}).get("level", "?") ) if type == "integration":