diff --git a/app.py b/app.py index db9d010..d90eb66 100644 --- a/app.py +++ b/app.py @@ -261,7 +261,7 @@ def create(): app.config['STARRS_DB_NAME'], app.config['STARRS_DB_USER'], app.config['STARRS_DB_HOST'], app.config['STARRS_DB_PASS']) if request.method == 'GET': - usage = get_user_usage(proxmox, 'proxstar') + usage = get_user_usage(proxmox, user) limits = get_user_usage_limits(user) percents = get_user_usage_percent(proxmox, usage, limits) isos = get_isos(proxmox, app.config['PROXMOX_ISO_STORAGE']) diff --git a/static/js/script.js b/static/js/script.js index 4b25a19..c949703 100644 --- a/static/js/script.js +++ b/static/js/script.js @@ -24,7 +24,7 @@ $("#delete-vm").click(function(){ icon: "success", }); }).then(() => { - window.location = ""; + window.location = "/"; }).catch(err => { if (err) { swal("Uh oh...", `Unable to delete ${vmname}. Please try again later.`, "error");