From c33bf8596fa47fd8b1e9d051bc5c8d0ed7529af6 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 11 Jun 2023 16:14:41 +0200 Subject: [PATCH] Add v2-packaging info/display --- app/models/appcatalog.py | 2 ++ app/templates/appci_branch.html | 25 +++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/app/models/appcatalog.py b/app/models/appcatalog.py index f785ece..2c9ec69 100644 --- a/app/models/appcatalog.py +++ b/app/models/appcatalog.py @@ -41,6 +41,7 @@ class AppCatalog(): known_app.maintained = 'package-not-maintained' not in app.get('antifeatures', []) known_app.state = app["state"] known_app.public_level = app.get("level", None) + known_app.packaging_format = app["manifest"].get("packaging_format", 0) if "github" in known_app.repo: @@ -86,6 +87,7 @@ class App(db.Model): testing_pr = db.Column(db.PickleType, default=None) opened_issues = db.Column(db.Integer, default=-1) opened_prs = db.Column(db.Integer, default=-1) + packaging_format = db.Column(db.Integer, default=-1) long_term_good_quality = db.Column(db.Boolean) long_term_broken = db.Column(db.Boolean) diff --git a/app/templates/appci_branch.html b/app/templates/appci_branch.html index 8774736..9dba3ea 100644 --- a/app/templates/appci_branch.html +++ b/app/templates/appci_branch.html @@ -2,7 +2,8 @@ {% block content %}

{{ branch.display_name }}

-
+
+