diff --git a/app/create_db.py b/app/create_db.py index 12b1a30d..9038e2ab 100644 --- a/app/create_db.py +++ b/app/create_db.py @@ -400,7 +400,7 @@ def update_db_v_3_4_7(**kwargs): def update_ver(**kwargs): con, cur = get_cur() - sql = """update version set version = '3.4.9.3'; """ + sql = """update version set version = '3.4.9.4'; """ try: cur.execute(sql) con.commit() @@ -410,19 +410,6 @@ def update_ver(**kwargs): con.close() -# def check_hash(): - # con, cur = get_cur() - # sql = """select hash from version""" - - # try: - # cur.execute(sql) - # return False - # except sqltool.Error as e: - # return True - # cur.close() - # con.close() - - def update_to_hash(): cur_ver = funct.check_ver() cur_ver = cur_ver.replace('.','') @@ -450,20 +437,6 @@ def update_to_hash(): if kwargs.get('silent') != 1: print("An error occurred:", e) - # con, cur = get_cur() - # sql = """ - # ALTER TABLE `version` ADD COLUMN hash INTEGER NOT NULL DEFAULT 1; - # """ - # try: - # cur.execute(sql) - # con.commit() - # except sqltool.Error as e: - # if kwargs.get('silent') != 1: - # print("An error occurred:", e) - - # cur.close() - # con.close() - def update_all(): update_db_v_31() diff --git a/app/index.html b/app/index.html index 1ecca50f..bfaba42c 100644 --- a/app/index.html +++ b/app/index.html @@ -3,8 +3,8 @@ HAProxy-WI - - + + @@ -13,7 +13,7 @@ - + {% for user in users %} @@ -42,10 +66,10 @@ {% endif %} - {% if user.6 == 1%} - - {% else %} - + {% if user.6 != 1%} + + Edit + {% endif %} @@ -256,9 +280,9 @@ {% if server.11 != "None" %} - + {% else %} - + {% endif %} @@ -662,6 +686,36 @@ +