From 645292d5a5b0027744720a27d64cc9e5a7795ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Tue, 21 Feb 2023 14:01:47 +0100 Subject: [PATCH] allow reloading recipes --- app.py | 5 +++++ dist/server.js | 2 ++ 2 files changed, 7 insertions(+) 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

+