mirror of https://github.com/Aidaho12/haproxy-wi
v3.7.3.3
parent
80e7b6a295
commit
c6c6989d3d
|
@ -438,7 +438,7 @@ def update_db_v_3_5_3(**kwargs):
|
||||||
|
|
||||||
def update_ver(**kwargs):
|
def update_ver(**kwargs):
|
||||||
con, cur = get_cur()
|
con, cur = get_cur()
|
||||||
sql = """update version set version = '3.7.3.2'; """
|
sql = """update version set version = '3.7.3.3'; """
|
||||||
try:
|
try:
|
||||||
cur.execute(sql)
|
cur.execute(sql)
|
||||||
con.commit()
|
con.commit()
|
||||||
|
|
|
@ -727,6 +727,8 @@ def versions():
|
||||||
|
|
||||||
|
|
||||||
def get_hash(value):
|
def get_hash(value):
|
||||||
|
if value is None:
|
||||||
|
return value
|
||||||
import hashlib
|
import hashlib
|
||||||
h = hashlib.md5(value.encode('utf-8'))
|
h = hashlib.md5(value.encode('utf-8'))
|
||||||
p = h.hexdigest()
|
p = h.hexdigest()
|
||||||
|
|
|
@ -228,6 +228,10 @@ $( function() {
|
||||||
$('.alert-danger').remove();
|
$('.alert-danger').remove();
|
||||||
$('.alert-warning').remove();
|
$('.alert-warning').remove();
|
||||||
$("#ajax-update").html('<div class="alert alert-danger">It is seems like you Unauthorized in the HAProxy-WI repository.</data>');
|
$("#ajax-update").html('<div class="alert alert-danger">It is seems like you Unauthorized in the HAProxy-WI repository.</data>');
|
||||||
|
} else if (data.indexOf('Error: Package') != '-1') {
|
||||||
|
$('.alert-danger').remove();
|
||||||
|
$('.alert-warning').remove();
|
||||||
|
$("#ajax-update").html('<div class="alert alert-danger">'+data+'</data>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in New Issue