Explorar o código

깜박해서 생긴 버그 수정

https://github.com/openNAMU/openNAMU/issues/2114
잉여개발기 (SPDV) %!s(int64=2) %!d(string=hai) anos
pai
achega
48f27a00aa
Modificáronse 3 ficheiros con 10 adicións e 2 borrados
  1. 6 0
      route/api_w_render.py
  2. 3 1
      route/tool/func.py
  3. 1 1
      version.json

+ 6 - 0
route/api_w_render.py

@@ -53,6 +53,12 @@ def api_w_render(name = '', tool = ''):
                     doc_data = data_org, 
                     data_type = 'api_view'
                 )
+            if tool == 'from':
+                data_pas = render_set(conn, 
+                    doc_name = name, 
+                    doc_data = data_org, 
+                    data_type = 'api_view'
+                )
             elif tool == 'include':
                 data_pas = render_set(conn, 
                     doc_name = name, 

+ 3 - 1
route/tool/func.py

@@ -1329,13 +1329,15 @@ def render_set(conn, doc_name = '', doc_data = '', data_type = 'view', markup =
     # data_type을 list 형식으로 개편 필요할 듯
 
     return_type = True
-    if data_type in ['api_view', 'api_thread', 'api_include']:
+    if data_type in ['api_from', 'api_view', 'api_thread', 'api_include']:
         return_type = False
 
     if data_type == '':
         data_type = 'view'
     elif data_type == 'api_view':
         data_type = 'view'
+    elif data_type == 'api_from':
+        data_type = 'from'
     elif data_type == 'api_thread':
         data_type = 'thread'
     elif data_type == 'api_include':

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "beta" : {
-        "r_ver" : "v3.5.0-dev52",
+        "r_ver" : "v3.5.0-dev53",
         "c_ver" : "3500376",
         "s_ver" : "3500113"
     }