Sfoglia il codice sorgente

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
pull/127/head
mrillies GitHub 8 anni fa
parent
commit
c1c5faa1f3
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      modules/fermenter/__init__.py

+ 1
- 0
modules/fermenter/__init__.py Vedi 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):


Loading…
Annulla
Salva