diff --git a/app.py b/app.py index c2fbb6a..87e3bdf 100644 --- a/app.py +++ b/app.py @@ -117,6 +117,11 @@ def next_phase(): if done: statemachine.done() +@socketio.on('reload recipes') +def reload_recipes(): + statemachine.reloadRecipes() + updateState() + def run_recipes(): while True: while statemachine.recipe is not None: diff --git a/dist/server.js b/dist/server.js index 805f873..4ec4202 100644 --- a/dist/server.js +++ b/dist/server.js @@ -292,6 +292,8 @@ function render_load_recipe(data) {

Load Recipe

+