Add reset to post put call (Fermenter update)

Added a call to reset the fermenter after an update.

Reset builds step parameter with FerementerStep objects from database.
Reset all clears current ferment steps - this may be positive or negative
This commit is contained in:
mrillies
2017-09-22 21:41:19 +10:00
committed by GitHub
parent 837b906af1
commit c1c5faa1f3
+1
View File
@@ -77,6 +77,7 @@ class FermenterView(BaseView):
def _post_put_callback(self, m):
m.state = False
self.reset(int(m.id))
@route('/<int:id>/targettemp/<temp>', methods=['POST'])
def postTargetTemp(self, id, temp):