comparison frontend/mfrontend/views/frontend.py @ 1:c3fb1e9fc1f7

(none)
author michalr
date Tue, 22 Feb 2011 18:10:18 +0000
parents
children 79fc37fe85a6
comparison
equal deleted inserted replaced
0:ebb283da07f7 1:c3fb1e9fc1f7
1 from flask import Module
2 from mfrontend import db
3 frontend = Module(__name__)
4
5 @frontend.route('/')
6 def index():
7 lol = db.query_db('select id, username, password from users')
8 return lol[0]['username']