.
This commit is contained in:
parent
78e2eb94c8
commit
54d03830e3
@ -56,7 +56,7 @@ def index():
|
|||||||
@app.get('/api/stats')
|
@app.get('/api/stats')
|
||||||
def handle_api():
|
def handle_api():
|
||||||
log.info("/api/stats command received")
|
log.info("/api/stats command received")
|
||||||
return json.dumps(oven)
|
return json.dumps(oven.get_state())
|
||||||
# if hasattr(oven,'pid'):
|
# if hasattr(oven,'pid'):
|
||||||
# if hasattr(oven.pid,'pidstats'):
|
# if hasattr(oven.pid,'pidstats'):
|
||||||
# log.info(oven.pid)
|
# log.info(oven.pid)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user