Skip to content
Myr

Fixed a typo that was preventing second code block from appearing in a code block

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kanak Kshetri · committed by Armin Ronacher · parent 709ecef · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/tutorial/dbcon.rst+1 added-1 removed
22 unmodified lines
23 g.db.close()24 return response2526If you want to guarantee that the connection is always closed in debug mode, you27can close it in a function decorated with :meth:`~flask.Flask.teardown_request`:27can close it in a function decorated with :meth:`~flask.Flask.teardown_request`::2829 @app.before_request30 def before_request():31 g.db = connect_db()
25 unmodified lines