Added testvalues & made stats non private

This commit is contained in:
Wout Schellaert 2015-03-28 12:17:04 +01:00
parent 4522adb3cc
commit 756b447719
2 changed files with 15 additions and 1 deletions

View file

@ -12,6 +12,21 @@ destro = User()
destro.configure('wout', True, 0)
db.session.add(destro)
burrito = Location()
burrito.configure("Burrito Bar", "Top-4-straat Keknet-city", "burritofest.com")
db.session.add(burrito)
blauw_kotje = Location()
blauw_kotje.configure("'t Blauw Kotje", "Top-5-straat Keknet-city", "frietfest.com")
db.session.add(blauw_kotje)
chili_con_carne = Food()
chili_con_carne.configure(burrito, "Chili Con Carne", 550)
db.session.add(chili_con_carne)
medium_pak_frieten = Food()
medium_pak_frieten.configure(blauw_kotje, "Medium Pak Frieten", 220)
db.session.add(medium_pak_frieten)
# To future developers, add yourself here
# commit all the things

View file

@ -24,7 +24,6 @@ def about():
@app.route('/stats/')
@login_required
def stats():
return render_template('stats.html')