瀏覽代碼

Reorder chilstep after boil and whirpool

pull/64/head
swimIan GitHub 8 年之前
父節點
當前提交
5b72d7b0d8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      modules/recipe_import/beerxml.py

+ 2
- 1
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:


Loading…
取消
儲存