From 29acd33610281c9b279c86f32f4761423dc6deb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=BA=E4=B9=8B?= <560397@gree.com.cn> Date: Tue, 21 Nov 2023 13:40:04 +0800 Subject: [PATCH] Update project --- application/extensions/init_config.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/application/extensions/init_config.py b/application/extensions/init_config.py index c3952dd..0e4f80f 100644 --- a/application/extensions/init_config.py +++ b/application/extensions/init_config.py @@ -7,25 +7,27 @@ # @Email : StudentCWZ@outlook.com # @Date : 2023/10/28 12:53 # @File : init_config.py -# @Description : flask-dynaconf extension +# @Description : Initializes the FlaskDynaconf extension for a Flask application. """ from flask import Flask - from dynaconf import FlaskDynaconf def init_config(app: Flask) -> None: """ - Initialize the dynaconf extension + Initializes the FlaskDynaconf extension for a Flask application. + + Args: + app (Flask): The Flask application. - :param app: flask.Flask application instance - :return: None + Returns: + None """ FlaskDynaconf( app=app, loaders=[ - "application.utils.loaders.consul_loader", - "application.utils.loaders.yaml_loader", + 'application.utils.loaders.consul_loader', + 'application.utils.loaders.yaml_loader', ], ) -- GitLab