Browse Source

하나 더 수정

잉여개발기 (SPDV) 2 years ago
parent
commit
63b14c539e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      route/tool/func.py

+ 2 - 2
route/tool/func.py

@@ -379,7 +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 = 'sec_re'"))
     
-    if ver_num < 3172800 and set_data['db_type'] == 'mysql':
+    if ver_num < 3172800 and set_data['type'] == 'mysql':
         get_data_mysql = json.loads(open('data/mysql.json', encoding = 'utf8').read())
         
         with open('data/mysql.json', 'w') as f:
@@ -605,7 +605,7 @@ def update(conn, ver_num, set_data):
             if get_data and (int(get_data[0][0]) + 1) == int(for_a[1]):
                 curs.execute(db_change("insert into data_set (doc_name, doc_rev, set_name, set_data) values (?, ?, 'edit_request_doing', '1')"), [for_a[0], for_a[1]])
 
-    if ver_num < 3500377 and set_data['db_type'] == 'sqlite':
+    if ver_num < 3500377 and set_data['type'] == 'sqlite':
         conn.execute('pragma journal_mode = delete')
 
     print('Update completed')