mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-08-09 18:52:40 +02:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user