From f2ae7731fff252a701a1564da90f40b6a3e4e6f0 Mon Sep 17 00:00:00 2001 From: Fr4nzD13trich Date: Wed, 15 Oct 2025 19:31:45 +0200 Subject: [PATCH] Some new features --- lomes-app.py | 7 +++---- templates/index.html | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lomes-app.py b/lomes-app.py index c83f6f8..9c6c4ba 100755 --- a/lomes-app.py +++ b/lomes-app.py @@ -12,11 +12,10 @@ def index(): user = getpass.getuser() preTime = datetime.datetime.now() time = preTime.strftime("%H:%M:%S - %a %d.%m.%Y") - uname_fields = ("sysname", "nodename", "release", "version", "machine") + uname_fields = ("System", "Hostname", "Release") uname_info = os.uname() - sysinfo = "\n".join(f"{field}: {value}" for field, value in zip(uname_fields, uname_info)) - lineBreak = sysinfo.replace("\n", "
") + sysinfo = "\n".join(f"{field}: {value} | " for field, value in zip(uname_fields, uname_info)) - return render_template("index.html", user=user, time=time, sysinfo=sysinfo, content=lineBreak) + return render_template("index.html", user=user, time=time, sysinfo=sysinfo) app.run(host="127.0.0.1", port=5000, debug=True) \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 67526ed..4e6cf4b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,7 +24,7 @@