1
0
mirror of https://github.com/balkian/eestec.codeit.git synced 2025-07-04 22:02:20 +00:00

Test of json returns

This commit is contained in:
J.Fernando Sánchez 2013-03-04 12:11:07 +01:00
parent 796c6acd54
commit d02904bcf5

5
app.py
View File

@ -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()