Merge pull request #206 from swimIan/swimIan-patch-1

Remove "Steps started on xml imported" bug
This commit is contained in:
Manuel83
2018-09-04 06:32:15 +02:00
committed by GitHub
+1
View File
@@ -90,6 +90,7 @@ class BeerXMLImport(FlaskView):
}) })
## Add Whirlpool step ## Add Whirlpool step
Step.insert(**{"name": "Whirlpool", "type": "ChilStep", "config": {"timer": 15}}) Step.insert(**{"name": "Whirlpool", "type": "ChilStep", "config": {"timer": 15}})
StepView().reset()
self.api.emit("UPDATE_ALL_STEPS", Step.get_all()) self.api.emit("UPDATE_ALL_STEPS", Step.get_all())
self.api.notify(headline="Recipe %s loaded successfully" % name, message="") self.api.notify(headline="Recipe %s loaded successfully" % name, message="")
except Exception as e: except Exception as e: