Skip to content

Commit 648108d

Browse files
committed
Clarified the comments
1 parent 9eb3282 commit 648108d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mrmat_python_api_flask/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,17 @@ def create_app(config_override=None, instance_path=None):
9797
app.logger.error(f'Failed to create instance path at {app.instance_path}')
9898
sys.exit(1)
9999

100-
# TODO: When using Flask-SQLAlchemy, the following import is not required because we're importing db.Model in the
101-
# SQLAlchemy classes
102-
# from .dao.resource import ResourceDAO
100+
# When using Flask-SQLAlchemy, there is no need to explicitly import DAO classes because they themselves
101+
# inherit from the SQLAlchemy model
102+
103103
global db, ma, migrate
104104
db.init_app(app)
105105
migrate.init_app(app, db)
106106
ma.init_app(app)
107107
oidc.init_app(app)
108108

109109
#
110-
# Import our APIs here
110+
# Import and register our APIs here
111111

112112
from mrmat_python_api_flask.apis.healthz import bp as api_healthz
113113
from mrmat_python_api_flask.apis.greeting.v1 import api_greeting_v1

0 commit comments

Comments
 (0)