From 58fd9a659ef2d27b5f6811bb226f52bfde7b1ae3 Mon Sep 17 00:00:00 2001 From: swimIan Date: Sat, 15 Jul 2017 22:43:10 -0700 Subject: [PATCH] Update beerxml.py --- modules/recipe_import/beerxml.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/recipe_import/beerxml.py b/modules/recipe_import/beerxml.py index 442812f..25f1b0e 100644 --- a/modules/recipe_import/beerxml.py +++ b/modules/recipe_import/beerxml.py @@ -65,11 +65,8 @@ class BeerXMLImport(FlaskView): StepView().reset() try: - - - ## Add Mashin step - Step.insert(**{"name": "MashIn", "type": mashinstep_type, "config": {"kettle": mash_kettle, "temp": mashin_temp}}) - + ## Add Mashin step + Step.insert(**{"name": "MashIn", "type": mashinstep_type, "config": {"kettle": mash_kettle, "temp": mashin_temp}}) 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}})