mirror of https://github.com/Aidaho12/haproxy-wi
parent
29b7d300fb
commit
33bf9bd90f
|
@ -121,9 +121,8 @@ def create_table(**kwargs):
|
||||||
CREATE TABLE IF NOT EXISTS `telegram` (`id` integer primary key autoincrement, `token` VARCHAR ( 64 ), `chanel_name` INTEGER NOT NULL DEFAULT 1, `groups` INTEGER NOT NULL DEFAULT 1);
|
CREATE TABLE IF NOT EXISTS `telegram` (`id` integer primary key autoincrement, `token` VARCHAR ( 64 ), `chanel_name` INTEGER NOT NULL DEFAULT 1, `groups` INTEGER NOT NULL DEFAULT 1);
|
||||||
CREATE TABLE IF NOT EXISTS `metrics` (`serv` varchar(64), curr_con INTEGER, cur_ssl_con INTEGER, sess_rate INTEGER, max_sess_rate INTEGER,`date` timestamp default '0000-00-00 00:00:00');
|
CREATE TABLE IF NOT EXISTS `metrics` (`serv` varchar(64), curr_con INTEGER, cur_ssl_con INTEGER, sess_rate INTEGER, max_sess_rate INTEGER,`date` timestamp default '0000-00-00 00:00:00');
|
||||||
CREATE TABLE IF NOT EXISTS `settings` (`param` varchar(64) UNIQUE, value varchar(64), section varchar(64), `desc` varchar(100));
|
CREATE TABLE IF NOT EXISTS `settings` (`param` varchar(64) UNIQUE, value varchar(64), section varchar(64), `desc` varchar(100));
|
||||||
CREATE TABLE IF NOT EXISTS `version` (`version` varchar(64), `hash` INTEGER NOT NULL DEFAULT 1,);
|
CREATE TABLE IF NOT EXISTS `version` (`version` varchar(64), `hash` INTEGER NOT NULL DEFAULT 1);
|
||||||
CREATE TABLE IF NOT EXISTS `options` ( `id` INTEGER NOT NULL, `options` VARCHAR ( 64 ), `groups` VARCHAR ( 120 ), PRIMARY KEY(`id`));
|
CREATE TABLE IF NOT EXISTS `options` ( `id` INTEGER NOT NULL, `options` VARCHAR ( 64 ), `groups` VARCHAR ( 120 ), PRIMARY KEY(`id`));
|
||||||
);
|
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
cur.executescript(sql)
|
cur.executescript(sql)
|
||||||
|
@ -256,7 +255,7 @@ def update_db_v_3_2_3(**kwargs):
|
||||||
print("An error occurred:", e)
|
print("An error occurred:", e)
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
print("DB was update to 3.2.3<br />")
|
print("DB was update to 3.2.3")
|
||||||
return True
|
return True
|
||||||
cur.close()
|
cur.close()
|
||||||
con.close()
|
con.close()
|
||||||
|
@ -497,6 +496,7 @@ def update_all_silent():
|
||||||
update_db_v_3_4_5_22()
|
update_db_v_3_4_5_22()
|
||||||
update_db_v_3_4_7(silent=1)
|
update_db_v_3_4_7(silent=1)
|
||||||
update_ver()
|
update_ver()
|
||||||
|
update_to_hash()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
@ -148,7 +148,7 @@ pre {
|
||||||
.auto-refresh-div {
|
.auto-refresh-div {
|
||||||
display: none;
|
display: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 10px 10px 14px;
|
padding: 10px;
|
||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
border-bottom: solid 1px #D9D9D9;
|
border-bottom: solid 1px #D9D9D9;
|
||||||
border-top: solid 1px #D9D9D9;
|
border-top: solid 1px #D9D9D9;
|
||||||
|
@ -168,6 +168,8 @@ pre {
|
||||||
.auto-refresh-interval {
|
.auto-refresh-interval {
|
||||||
float: right;
|
float: right;
|
||||||
padding: 0px 15px;
|
padding: 0px 15px;
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-bottom: 10px;
|
||||||
margin-left: 70%;
|
margin-left: 70%;
|
||||||
border-bottom: solid 1px #D9D9D9;
|
border-bottom: solid 1px #D9D9D9;
|
||||||
}
|
}
|
||||||
|
@ -180,6 +182,7 @@ pre {
|
||||||
.auto-refresh-ul ul li {
|
.auto-refresh-ul ul li {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
padding-left: 15px;
|
||||||
border: 0;
|
border: 0;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
|
|
Loading…
Reference in New Issue