Catch up with uncommitted changes

This commit is contained in:
Jonathan Carter
2025-04-03 21:23:49 +02:00
parent 68667f2d86
commit 12c1963d67
4 changed files with 11 additions and 5 deletions

View File

@@ -2,7 +2,16 @@ from applets.software import bp
from flask import Flask, request, session, redirect, \
url_for, render_template, flash, Blueprint
# we use this neat little trick to get config data from the main app
from flask import current_ap
from flask import current_app
@bp.route('/users')
def users_root():
"""
Users screen for the webui.
"""
string_dict = build_stringlist()
return render_template('users.html', string_dict=string_dict)
def build_stringlist():

View File

@@ -1,4 +0,0 @@
mem()
{
ps -eo rss,pid,euser,args:100 --sort %mem | grep -v grep | grep -i $@ | awk '{printf $1/1024 "MB"; $1=""; print }'
}

View File

@@ -3,6 +3,7 @@
import webview
LOCATION = "http://10.10.99.22:8080/welcome"
#LOCATION = "http://localhost:8080/welcome"
def on_closed():
"""