From d78413e6aa75dd119224c8b3c01e2fe781d4e935 Mon Sep 17 00:00:00 2001 From: JIAKUNHAO Date: Fri, 18 Nov 2022 17:04:00 +0800 Subject: [PATCH] global value init --- app/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/run.py b/app/run.py index f302f58..3b7f6ad 100644 --- a/app/run.py +++ b/app/run.py @@ -7,6 +7,7 @@ from typing import List, Dict, Union from flask import Flask, request from flask.helpers import get_env from flask_sockets import Sockets +from app.configs.global_var import _init import sys #sys.path.append("/mnt/sdc/algorithm/AICheck-MaskRCNN") @@ -80,6 +81,7 @@ def create_app(): register_blueprints(app) register_error_handler(app) db.create_all() + _init() register_cmds(app) register_log(app) register_redis(app)