From 756b44771910983fe5af811d8f3f62225c7c6677 Mon Sep 17 00:00:00 2001 From: Wout Schellaert Date: Sat, 28 Mar 2015 12:17:04 +0100 Subject: [PATCH] Added testvalues & made stats non private --- app/create_database.py | 15 +++++++++++++++ app/views/__init__.py | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/app/create_database.py b/app/create_database.py index 44c7b21..d277725 100644 --- a/app/create_database.py +++ b/app/create_database.py @@ -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 diff --git a/app/views/__init__.py b/app/views/__init__.py index f68989f..a44037b 100644 --- a/app/views/__init__.py +++ b/app/views/__init__.py @@ -24,7 +24,6 @@ def about(): @app.route('/stats/') -@login_required def stats(): return render_template('stats.html')