ソースを参照

또 버그 수정

잉여개발기 (SPDV) 2 年 前
コミット
f996426cf5
2 ファイル変更2 行追加3 行削除
  1. 1 1
      app.py
  2. 1 2
      route/tool/func.py

+ 1 - 1
app.py

@@ -118,7 +118,7 @@ with get_db_connect() as conn:
             pass
             pass
 
 
         if setup_tool == 'update':
         if setup_tool == 'update':
-            update(conn, int(ver_set_data[0][0]), set_data)
+            update(conn, int(ver_set_data[0][0]), data_db_set)
         else:
         else:
             set_init(conn)
             set_init(conn)
 
 

+ 1 - 2
route/tool/func.py

@@ -379,8 +379,7 @@ def update(conn, ver_num, set_data):
                 curs.execute(db_change("update other set data = '' where name = 'recaptcha'"))
                 curs.execute(db_change("update other set data = '' where name = 'recaptcha'"))
                 curs.execute(db_change("update other set data = '' where name = 'sec_re'"))
                 curs.execute(db_change("update other set data = '' where name = 'sec_re'"))
     
     
-    if  ver_num < 3172800 and \
-        set_data['db_type'] == 'mysql':
+    if ver_num < 3172800 and set_data['db_type'] == 'mysql':
         get_data_mysql = json.loads(open('data/mysql.json', encoding = 'utf8').read())
         get_data_mysql = json.loads(open('data/mysql.json', encoding = 'utf8').read())
         
         
         with open('data/mysql.json', 'w') as f:
         with open('data/mysql.json', 'w') as f: