From 6f44ca705f277580105d8e55a7a3994802ac7e7d Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 8 Feb 2014 22:14:23 +0000 Subject: [PATCH] Fixed sqlite3 pattern. This fixes #924 --- docs/patterns/sqlite3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/patterns/sqlite3.rst b/docs/patterns/sqlite3.rst index 660b1a0e..5181fea6 100644 --- a/docs/patterns/sqlite3.rst +++ b/docs/patterns/sqlite3.rst @@ -17,7 +17,7 @@ Here is a simple example of how you can use SQLite 3 with Flask:: def get_db(): db = getattr(g, '_database', None) if db is None: - db = g._database = connect_to_database() + db = g._database = sqlite3.connect(DATABASE) return db @app.teardown_appcontext