Added testvalues & made stats non private
This commit is contained in:
parent
4522adb3cc
commit
756b447719
2 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -24,7 +24,6 @@ def about():
|
|||
|
||||
|
||||
@app.route('/stats/')
|
||||
@login_required
|
||||
def stats():
|
||||
return render_template('stats.html')
|
||||
|
||||
|
|
Loading…
Reference in a new issue