From c6c6989d3daf8ad93905843ad30c77b57729b957 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Thu, 21 Nov 2019 23:36:52 +0300 Subject: [PATCH] v3.7.3.3 --- app/create_db.py | 2 +- app/funct.py | 2 ++ inc/users.js | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/create_db.py b/app/create_db.py index 721d7b26..5334188f 100644 --- a/app/create_db.py +++ b/app/create_db.py @@ -438,7 +438,7 @@ def update_db_v_3_5_3(**kwargs): def update_ver(**kwargs): con, cur = get_cur() - sql = """update version set version = '3.7.3.2'; """ + sql = """update version set version = '3.7.3.3'; """ try: cur.execute(sql) con.commit() diff --git a/app/funct.py b/app/funct.py index 185cca2c..9c68c134 100644 --- a/app/funct.py +++ b/app/funct.py @@ -727,6 +727,8 @@ def versions(): def get_hash(value): + if value is None: + return value import hashlib h = hashlib.md5(value.encode('utf-8')) p = h.hexdigest() diff --git a/inc/users.js b/inc/users.js index 9771e254..e4bfc65d 100644 --- a/inc/users.js +++ b/inc/users.js @@ -228,6 +228,10 @@ $( function() { $('.alert-danger').remove(); $('.alert-warning').remove(); $("#ajax-update").html('
It is seems like you Unauthorized in the HAProxy-WI repository.'); + } else if (data.indexOf('Error: Package') != '-1') { + $('.alert-danger').remove(); + $('.alert-warning').remove(); + $("#ajax-update").html('
'+data+''); } } } );