From 33bf9bd90f688120b1f237f52937fbdfcbdebea5 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Fri, 27 Sep 2019 10:07:51 +0300 Subject: [PATCH] v3.4.9.2 Bugs --- app/create_db.py | 6 +++--- inc/style.css | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/create_db.py b/app/create_db.py index 5af57c0b..6b9f8165 100644 --- a/app/create_db.py +++ b/app/create_db.py @@ -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 `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 `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`)); - ); """ try: cur.executescript(sql) @@ -256,7 +255,7 @@ def update_db_v_3_2_3(**kwargs): print("An error occurred:", e) return False else: - print("DB was update to 3.2.3
") + print("DB was update to 3.2.3") return True cur.close() con.close() @@ -497,6 +496,7 @@ def update_all_silent(): update_db_v_3_4_5_22() update_db_v_3_4_7(silent=1) update_ver() + update_to_hash() if __name__ == "__main__": diff --git a/inc/style.css b/inc/style.css index 3de7f1e3..fdad4435 100644 --- a/inc/style.css +++ b/inc/style.css @@ -148,7 +148,7 @@ pre { .auto-refresh-div { display: none; position: relative; - padding: 10px 10px 14px; + padding: 10px; background-color: #F5F5F5; border-bottom: solid 1px #D9D9D9; border-top: solid 1px #D9D9D9; @@ -168,6 +168,8 @@ pre { .auto-refresh-interval { float: right; padding: 0px 15px; + margin-top: 5px; + margin-bottom: 10px; margin-left: 70%; border-bottom: solid 1px #D9D9D9; } @@ -180,6 +182,7 @@ pre { .auto-refresh-ul ul li { margin: 0; padding: 0; + padding-left: 15px; border: 0; font-family: inherit; vertical-align: baseline;