Skip to content

Commit

Permalink
Stop getting main CI, use bookworm
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Oct 31, 2024
1 parent 9c8fa78 commit d179631
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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, "?"]
]
)

Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit d179631

Please sign in to comment.