Ver Fonte

fix conn bug

잉여개발기 (SPDV) há 3 anos atrás
pai
commit
b8427d9248
5 ficheiros alterados com 5 adições e 5 exclusões
  1. 1 1
      route/list_acl.py
  2. 1 1
      route/login_login_2fa.py
  3. 1 1
      route/login_register_email.py
  4. 1 1
      route/main_view.py
  5. 1 1
      version.json

+ 1 - 1
route/list_acl.py

@@ -1,6 +1,6 @@
 from .tool.func import *
 
-def list_acl_2(conn):
+def list_acl_2():
     with get_db_connect() as conn:
         curs = conn.cursor()
 

+ 1 - 1
route/login_login_2fa.py

@@ -1,6 +1,6 @@
 from .tool.func import *
 
-def login_login_2fa_2(conn):
+def login_login_2fa_2():
     with get_db_connect() as conn:
         curs = conn.cursor()
 

+ 1 - 1
route/login_register_email.py

@@ -1,6 +1,6 @@
 from .tool.func import *
 
-def login_register_email_2(conn):
+def login_register_email_2():
     with get_db_connect() as conn:
         curs = conn.cursor()
 

+ 1 - 1
route/main_view.py

@@ -5,7 +5,7 @@ def main_view(name = ''):
     with get_db_connect() as conn:
         file_name = re.search(r'([^/]+)$', name)
         if not file_name:
-            return main_error_404(conn)
+            return main_error_404()
         else:
             file_name = file_name.group(1)
             dir_name = './views/' + re.sub(r'\.{2,}', '', re.sub(r'([^/]+)$', '', name))

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "beta" : {
-        "r_ver" : "v3.4.5 (stable2) (beta3) (dev49)",
+        "r_ver" : "v3.4.5 (stable2) (beta3) (dev50)",
         "c_ver" : "3500113",
         "s_ver" : "3500110"
     }