This commit is contained in:
Andros Fenollosa 2018-05-01 14:07:33 +02:00
parent 329abd48aa
commit 43a8d4020e

2
app.py
View File

@ -73,7 +73,9 @@ def contacts():
'''
Show alls contacts
'''
print(app.config['SQLALCHEMY_DATABASE_URI'])
contacts = Contact.query.order_by(Contact.name).all()
print(len(contacts))
return render_template('web/contacts.html', contacts=contacts)