All Colors Are Beautiful

This commit is contained in:
Colin Goutte 2021-10-01 15:02:58 +02:00
parent 75840fde52
commit e1fecd666f
1 changed files with 1 additions and 1 deletions

View File

@ -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