From 5b72d7b0d8a1a49ea48a006fabe7f956106b0ff8 Mon Sep 17 00:00:00 2001 From: swimIan Date: Wed, 5 Jul 2017 12:38:28 -0700 Subject: [PATCH] Reorder chilstep after boil and whirpool --- modules/recipe_import/beerxml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/recipe_import/beerxml.py b/modules/recipe_import/beerxml.py index e9f17e0..e7a1673 100644 --- a/modules/recipe_import/beerxml.py +++ b/modules/recipe_import/beerxml.py @@ -66,11 +66,12 @@ class BeerXMLImport(FlaskView): for row in steps: Step.insert(**{"name": row.get("name"), "type": mashstep_type, "config": {"kettle": mash_kettle, "temp": float(row.get("temp")), "timer": row.get("timer")}}) - Step.insert(**{"name": "ChilStep", "type": "ChilStep", "config": {"timer": 15}}) ## Add cooking step Step.insert(**{"name": "Boil", "type": boilstep_type, "config": {"kettle": boil_kettle, "temp": boil_temp, "timer": boil_time}}) ## Add Whirlpool step Step.insert(**{"name": "Whirlpool", "type": "ChilStep", "config": {"timer": 15}}) + ##reorder chilstep after boil and whirlpool steps + Step.insert(**{"name": "ChilStep", "type": "ChilStep", "config": {"timer": 15}}) self.api.emit("UPDATE_ALL_STEPS", Step.get_all()) self.api.notify(headline="Recipe %s loaded successfully" % name, message="") except Exception as e: