From deac138400f94728148e64aad6d6c286c7f3970c Mon Sep 17 00:00:00 2001 From: Mica Date: Mon, 31 Jul 2023 17:39:21 +0200 Subject: [PATCH] clear condition --- ecosystem/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecosystem/manager.py b/ecosystem/manager.py index bf2a57320d..e10a474419 100644 --- a/ecosystem/manager.py +++ b/ecosystem/manager.py @@ -133,8 +133,8 @@ def update_badges(self): for project in self.dao.get_repos_by_tier(tier): tests_passed = True for type_test in project.tests_results: - if type_test.test_type == "standard": - tests_passed = True is type_test.passed + if type_test.test_type == "standard" and not type_test.passed: + tests_passed = False color = "blueviolet" if tests_passed else "gray" label = project.name message = tier