mirror of
https://github.com/balkian/eestec.codeit.git
synced 2025-07-05 06:02:22 +00:00
Test of json returns
This commit is contained in:
parent
796c6acd54
commit
d02904bcf5
5
app.py
5
app.py
@ -28,6 +28,11 @@ app = Flask(__name__)
|
|||||||
def hello():
|
def hello():
|
||||||
return 'Hello World!'
|
return 'Hello World!'
|
||||||
|
|
||||||
|
@app.route('/stats')
|
||||||
|
def stats():
|
||||||
|
stats = db.stats.findOne()
|
||||||
|
return stats
|
||||||
|
|
||||||
def update_db():
|
def update_db():
|
||||||
store.load_all('lcs.json')
|
store.load_all('lcs.json')
|
||||||
stats=store.get_stats()
|
stats=store.get_stats()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user