Skip to content

Commit e407f4b

Browse files
committed
Fixed typo
1 parent d0f13e2 commit e407f4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flaskext/sqlalchemy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,12 @@ def __get__(self, obj, type):
287287

288288

289289
def _record_queries(app):
290-
if self._app.debug:
290+
if app.debug:
291291
return True
292-
rq = self._app.config['SQLALCHEMY_RECORD_QUERIES']
292+
rq = app.config['SQLALCHEMY_RECORD_QUERIES']
293293
if rq is not None:
294294
return rq
295-
return bool(self._app.config.get('TESTING'))
295+
return bool(app.config.get('TESTING'))
296296

297297

298298
class _EngineConnector(object):

0 commit comments

Comments
 (0)