def router(id, item=None): # tela de parâmetros if (id == 21 or id == 23): global experimentos_id global experimentos_titulo experimento_id = experimentos_id[int(item)] experimento_titulo = experimentos_titulo[int(item)] dict_config = { "experimento_titulo": experimento_titulo, "experimento_id": experimento_id, } Router.router(id, TelaInicial, dict_config) else: Router.router(id, TelaInicial)
def create_app(*, test=False) -> Flask: app: Flask = Flask(__name__) app.config.from_object(Config) Router(app).register() CORS(app) if not test: connect('get-terra') return app
def create_app(): app = Flask(__name__) app.config.from_object(Config) Router(app).register() JWTManager(app) CORS(app) connect('dms-intern') Swagger(app, template=app.config['SWAGGER_TEMPLATE']) return app
def create_app() -> Flask: app: Flask = Flask(__name__) app.config.from_object(Config) Router(app).register() CORS(app) jwt = JWTManager(app) jwt.user_claims_loader(add_claims) connect('get-terra') Swagger(app, template=app.config['SWAGGER_TEMPLATE']) return app
def router(id): Router.router(id, TelaInicial)
def router(id, dict_config=None): Router.router(id, TelaInicial, dict_config)