Procházet zdrojové kódy

ACL 사소한 버그 수정

Surplus_Up (2DU) před 6 roky
rodič
revize
74e50fead0
3 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. 1 1
      app.py
  2. 5 5
      route/view_read.py
  3. 1 1
      version.json

+ 1 - 1
app.py

@@ -84,7 +84,7 @@ if set_data['db_type'] == 'mysql':
         new_json = ['', '']
 
         while 1:
-            print('DB user id : ', end = '')
+            print('DB user ID : ', end = '')
             new_json[0] = str(input())
             if new_json[0] != '':
                 break

+ 5 - 5
route/view_read.py

@@ -94,11 +94,6 @@ def view_read_2(conn, name):
         else:
             else_data = None
 
-        curs.execute(db_change("select decu from acl where title = ?"), [name])
-        data = curs.fetchall()
-        if data:
-            acl = 1
-
         if flask.request.args.get('from', None) and else_data:
             else_data = re.sub('^\r\n', '', else_data)
             else_data = re.sub('\r\n$', '', else_data)
@@ -112,6 +107,11 @@ def view_read_2(conn, name):
             curs.execute(db_change("delete from cache_data where title = ?"), [name])
             if last_history_num:
                 curs.execute(db_change("insert into cache_data (title, data, id) values (?, ?, ?)"), [name, end_data, last_history_num[0][0]])
+                
+    curs.execute(db_change("select decu from acl where title = ?"), [name])
+    data = curs.fetchall()
+    if data:
+        acl = 1
 
     if end_data == 'HTTP Request 401.3':
         response_data = 401

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "master" : {
-        "r_ver" : "v3.1.7-master-25",
+        "r_ver" : "v3.1.7-master-26",
         "c_ver" : "3171800",
         "s_ver" : "7"
     }, "stable" : {