diff --git a/status.html.gen.py b/status.html.gen.py index 9860596ffa864c43f4eaea211ddf5f4e351b1b4b..fea8e87b66de3771eee2d6836e975c81a7352323 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'], {})