And finished documentation for most parts.

This commit is contained in:
Armin Ronacher 2010-04-09 13:40:05 +02:00
parent 4edec48b74
commit 727c701686
5 changed files with 199 additions and 4 deletions

View file

@ -65,7 +65,7 @@ def before_request():
"""Make sure we are connected to the database each request and look
up the current user so that we know he's there.
"""
g.db = sqlite3.connect(DATABASE)
g.db = connect_db()
if 'user_id' in session:
g.user = query_db('select * from user where user_id = ?',
[session['user_id']], one=True)