Skip to content

Commit cb03ec1

Browse files
committed
fixed comment
1 parent 01e8ce5 commit cb03ec1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cs50/sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def execute(self, sql, *args, **kwargs):
293293
if _teardown_appcontext not in flask.current_app.teardown_appcontext_funcs:
294294
flask.current_app.teardown_appcontext(_teardown_appcontext)
295295

296-
# Use this connection
296+
# Use this session
297297
session = sessions[self]
298298

299299
except (ModuleNotFoundError, AssertionError):
@@ -302,7 +302,7 @@ def execute(self, sql, *args, **kwargs):
302302
if not hasattr(self, "_session"):
303303
self._session = sqlalchemy.orm.scoping.scoped_session(sqlalchemy.orm.sessionmaker(bind=self._engine))
304304

305-
# Use this connection
305+
# Use this session
306306
session = self._session
307307

308308
# Catch SQLAlchemy warnings

0 commit comments

Comments
 (0)