2DU 9 lat temu
rodzic
commit
b54cbc1b02
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -97,7 +97,7 @@ def start():
     except:
         db_ex("create table custom(user text, css longtext)") 
         
-conn = pymysql.connect(host = set_data['host'], user = set_data['user'], password = set_data['pw'], charset = 'utf8mb4')
+conn = pymysql.connect(host = set_data['host'], user = set_data['user'], password = set_data['pw'], charset = 'utf8mb4', connect_timeout = 86400)
 curs = conn.cursor(pymysql.cursors.DictCursor)
 
 def redirect(data):