All Colors Are Beautiful
This commit is contained in:
parent
75840fde52
commit
e1fecd666f
|
@ -108,7 +108,7 @@ def list_notification_as_text(request: Request, idsonde: str):
|
|||
status = content["status"]
|
||||
|
||||
def coloriser(message):
|
||||
d = {"error": "red", "warning": "orange", "pending": "blue"}
|
||||
d = {"error": "red", "warning": "orange", "pending": "yellow", "ok": "green"}
|
||||
for k, v in d.items():
|
||||
if message.endswith(k):
|
||||
return "color: %s;" % v
|
||||
|
|
Loading…
Reference in New Issue