From d02904bcf52ea3d3d819f6c55093fb03fb7dc16c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2EFernando=20S=C3=A1nchez?= Date: Mon, 4 Mar 2013 12:11:07 +0100 Subject: [PATCH] Test of json returns --- app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.py b/app.py index 2b16a4a..5fbe727 100644 --- a/app.py +++ b/app.py @@ -28,6 +28,11 @@ app = Flask(__name__) def hello(): return 'Hello World!' +@app.route('/stats') +def stats(): + stats = db.stats.findOne() + return stats + def update_db(): store.load_all('lcs.json') stats=store.get_stats()