From bf1313cfb90f8cd6dc212a38ecb5a78f9fe22c10 Mon Sep 17 00:00:00 2001
From: Recolic Keghart <root@recolic.net>
Date: Thu, 14 Nov 2019 18:59:14 +0800
Subject: [PATCH] bug fix.

---
 status.html.gen.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/status.html.gen.py b/status.html.gen.py
index 9860596..fea8e87 100755
--- a/status.html.gen.py
+++ b/status.html.gen.py
@@ -107,7 +107,8 @@ from datafile import *
 #        ('Reverse Proxy', 'green')
 #        ]
 # Everything currently working
-all_ok = reduce((lambda x,y: ('', x[1] if x[1]==y[1] else 'shit')), current_status)[1] == 'green'
+all_ok = len(list(filter(lambda x: x[1] != 'green' and x[1] != 'blue', current_status))) == 0
+
 
 if all_ok:
     all_ok_text = get_section_with_vars(sections['all_ok'], {})
-- 
GitLab