From ba9d34b403bdcd5269b33839ff4c8058c1f6df60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dylan=20A=C3=AFssi?= <dylan.aissi@collabora.com>
Date: Thu, 11 Jul 2024 17:41:50 +0200
Subject: [PATCH] Count the number of wrong-settings reports
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
---
 bin/dashboard | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bin/dashboard b/bin/dashboard
index 4251769..84a7a88 100755
--- a/bin/dashboard
+++ b/bin/dashboard
@@ -74,6 +74,12 @@ def preprocess_packaging_data(data):
         "total_packaging_delta": sum(
             count_reports(p, lambda r: r["domain"] == "delta") for p in packages
         ),
+        "wrong_settings_count": sum(
+            count_reports(
+                p, lambda r: r["domain"] == "git" and r["kind"] == "wrong-settings"
+            )
+            for p in packages
+        ),
     }
     data["summary"] = summary
 
-- 
GitLab