From 38144b07a0eea98839463bada62f8d4ec9851b55 Mon Sep 17 00:00:00 2001 From: R2boyo25 Date: Sun, 7 May 2023 13:11:48 -0500 Subject: [PATCH] Display 'never started' for disabled processes --- templates/list.html | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/templates/list.html b/templates/list.html index a890fcb..538bf86 100644 --- a/templates/list.html +++ b/templates/list.html @@ -21,10 +21,23 @@ {% endif %} - {{ ((("Crashed" + " (Code " + str(proc['returncode']) + - ")") if proc['returncode'] >= 0 else ("Killed" + " (Code " + - str(proc['returncode']) + ")")) if proc['returncode'] else - "Exited normally") if not proc['running'] else ("Paused" if proc['paused'] else "Running") }} + + {{ + ( + ( + ("Crashed" + " (Code " + str(proc["returncode"]) + ")") + if proc["returncode"] > 0 + else ( + "Never Started" + if proc["returncode"] == -111 else + "Killed" + " (Code " + str(proc["returncode"]) + ")" + ) + ) + if proc["returncode"] + else "Exited normally" + ) if not proc["running"] else ("Paused" if proc["paused"] else "Running") + }} + {{ proc['process'] }} {% endfor %}