From 5d3b74facff68f6c9b55379372988545966ae43a Mon Sep 17 00:00:00 2001 From: Aidaho12 Date: Tue, 10 Jul 2018 18:03:28 +0600 Subject: [PATCH] v2.6.2 Bugs --- app/edit.py | 2 ++ app/ovw.py | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/edit.py b/app/edit.py index fe0c3541..f147d01c 100644 --- a/app/edit.py +++ b/app/edit.py @@ -19,6 +19,8 @@ try: servers = sql.get_dick_permit(virt=1) token = sql.get_token(user_id.value) servbackend = form.getvalue('servbackend') + if servbackend is None: + servbackend = "" except: pass diff --git a/app/ovw.py b/app/ovw.py index aed5fb40..ebf45226 100644 --- a/app/ovw.py +++ b/app/ovw.py @@ -153,8 +153,10 @@ def get_map(serv): except Exception as e: print('
' + str(e) + '
') - commands = [ "rm -f "+fullpath+"/map*.png", "mv %s/map.png %s/map%s.png" % (cgi_path, fullpath, date) ] - funct.ssh_command("localhost", commands) + cmd = "rm -f "+fullpath+"/map*.png && mv "+cgi_path+"/map.png "+fullpath+"/map"+date+".png" + output, stderr = funct.subprocess_execute(cmd) + print(stderr) + print('map' % date) def show_compare_configs(serv):