Browse Source

Merge remote-tracking branch 'origin/master'

luojiehua 2 năm trước cách đây
mục cha
commit
585f94f05f
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      format_convert/convert_need_interface.py

+ 9 - 0
format_convert/convert_need_interface.py

@@ -784,3 +784,12 @@ def interface_pool_gunicorn(interface_type):
 #     else:
 #         log("port_pool " + interface_type + " " + str(port_flag) + " " + soffice_port_list[port_index])
 #         return soffice_port_list[port_index]
+
+
+if __name__ == "__main__":
+    from format_convert.utils import set_flask_global
+    _global._init()
+    set_flask_global()
+
+    for i in range(10):
+        print("result", interface_pool_gunicorn("ocr"))