global value init

This commit is contained in:
JIAKUNHAO 2022-11-18 17:04:00 +08:00
parent f1435f4f55
commit d78413e6aa

View File

@ -7,6 +7,7 @@ from typing import List, Dict, Union
from flask import Flask, request from flask import Flask, request
from flask.helpers import get_env from flask.helpers import get_env
from flask_sockets import Sockets from flask_sockets import Sockets
from app.configs.global_var import _init
import sys import sys
#sys.path.append("/mnt/sdc/algorithm/AICheck-MaskRCNN") #sys.path.append("/mnt/sdc/algorithm/AICheck-MaskRCNN")
@ -80,6 +81,7 @@ def create_app():
register_blueprints(app) register_blueprints(app)
register_error_handler(app) register_error_handler(app)
db.create_all() db.create_all()
_init()
register_cmds(app) register_cmds(app)
register_log(app) register_log(app)
register_redis(app) register_redis(app)