From 86abbf59c38a977fee1a245fabee82ecf789ab17 Mon Sep 17 00:00:00 2001 From: nogoodidea Date: Mon, 26 Feb 2024 19:34:50 -0500 Subject: [PATCH] recall how python if statements work --- proxstar/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxstar/__init__.py b/proxstar/__init__.py index 5f6b362..ea5f97f 100644 --- a/proxstar/__init__.py +++ b/proxstar/__init__.py @@ -413,7 +413,7 @@ def vm_renew(vmid): @auth.oidc_auth def create_disk(vmid, size): ## are they trying to disk with zero size - if(size =< 0): + if size <= 0: return '', 400 user = User(session['userinfo']['preferred_username']) connect_proxmox() @@ -594,7 +594,7 @@ def create(): memory = request.form['mem'] disk = request.form['disk'] ## CHECK STUFF DEAR GOD - if(int(cores) <= 0 or int(memory) <= 0 or int(disk) <= 0){ + if int(cores) <= 0 or int(memory) <= 0 or int(disk) <= 0{ return 'VM creation with cores and/or mem and/or disk values that are less than 0' 400 }