Commit 41394999 authored by 崔为之's avatar 崔为之 💪🏽

Update project

parent cfa83de3
......@@ -25,9 +25,7 @@ def init_database(app: Flask) -> None:
:param app: flask.Flask application instance
:return: None
"""
cfg = app.config.get('Database')
if cfg is None:
raise KeyError('Key Database error')
cfg = app.config.Database
uri = DatabaseURI(
db_type=cfg.Type,
username=cfg.Username,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment