잉여개발기 1 vuosi sitten
vanhempi
sitoutus
d6e50091f3
5 muutettua tiedostoa jossa 9 lisäystä ja 9 poistoa
  1. 1 1
      route/bbs_w_edit.py
  2. 2 2
      route/filter_all_add.py
  3. 2 2
      route/topic_tool_acl.py
  4. 2 2
      route/view_set.py
  5. 2 2
      route/vote_add.py

+ 1 - 1
route/bbs_w_edit.py

@@ -107,7 +107,7 @@ async def bbs_w_edit(bbs_num = '', post_num = '', comment_num = ''):
                 data = temp_dict['data']
 
             acl_div = ['' for _ in range(0, len(i_list))]
-            acl_list = get_acl_list()
+            acl_list = await get_acl_list()
             for for_a in range(0, len(i_list)):
                 for data_list in acl_list:
                     acl_div[for_a] += '<option value="' + data_list + '">' + (data_list if data_list != '' else 'normal') + '</option>'

+ 2 - 2
route/filter_all_add.py

@@ -1,6 +1,6 @@
 from .tool.func import *
 
-def filter_all_add(tool, name = None):
+async def filter_all_add(tool, name = None):
     with get_db_connect() as conn:
         curs = conn.cursor()
 
@@ -208,7 +208,7 @@ def filter_all_add(tool, name = None):
                     '<input value="" type="text" name="max_file_size">' + \
                 ''
             elif tool == 'document':
-                acl_list = get_acl_list()
+                acl_list = await get_acl_list()
                 
                 curs.execute(db_change("select plus, plus_t from html_filter where html = ? and kind = 'document'"), [name])
                 db_data = curs.fetchall()

+ 2 - 2
route/topic_tool_acl.py

@@ -1,6 +1,6 @@
 from .tool.func import *
 
-def topic_tool_acl(topic_num = 1):
+async def topic_tool_acl(topic_num = 1):
     with get_db_connect() as conn:
         curs = conn.cursor()
 
@@ -55,7 +55,7 @@ def topic_tool_acl(topic_num = 1):
 
             return redirect(conn, '/thread/' + topic_num)
         else:
-            acl_list = get_acl_list()
+            acl_list = await get_acl_list()
             acl_html_list = ''
             acl_html_list_view = ''
 

+ 2 - 2
route/view_set.py

@@ -25,7 +25,7 @@ def view_set_markup(conn, document_name = '', markup = '', addon = '', disable =
 
     return markup_html
 
-def view_set(name = 'Test', multiple = False):
+async def view_set(name = 'Test', multiple = False):
     with get_db_connect() as conn:
         curs = conn.cursor()
 
@@ -144,7 +144,7 @@ def view_set(name = 'Test', multiple = False):
             return redirect(conn, '/acl/' + url_pas(name))
         else:
             data = '<h2>' + get_lang(conn, 'acl') + '</h2>'
-            acl_list = get_acl_list()
+            acl_list = await get_acl_list()
             acl_get_list = [
                 [get_lang(conn, 'view_acl'), 'view', '3'],
                 [get_lang(conn, 'document_acl'), 'decu', '4'],

+ 2 - 2
route/vote_add.py

@@ -1,6 +1,6 @@
 from .tool.func import *
 
-def vote_add():
+async def vote_add():
     with get_db_connect() as conn:
         curs = conn.cursor()
 
@@ -46,7 +46,7 @@ def vote_add():
             return redirect(conn, '/vote')
         else:
             acl_data = '<select name="acl_select">'
-            acl_list = get_acl_list()
+            acl_list = await get_acl_list()
             for data_list in acl_list:
                 acl_data += '<option value="' + data_list + '">' + (data_list if data_list != '' else 'normal') + '</option>'