mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-08-10 02:55:27 +02:00
-Custom Web View Examples Added
-UI Adjustment for small screens. Brew Steps are displayed above the kettles. -
This commit is contained in:
@@ -227,10 +227,13 @@ def execute_step(api):
|
||||
step = cbpi.cache.get("active_step")
|
||||
if step is not None:
|
||||
step.execute()
|
||||
|
||||
if step.is_dirty():
|
||||
|
||||
state = {}
|
||||
for field in step.managed_fields:
|
||||
state[field] = step.__getattribute__(field)
|
||||
|
||||
Step.update_step_state(step.id, state)
|
||||
step.reset_dirty()
|
||||
cbpi.ws_emit("UPDATE_ALL_STEPS", Step.get_all())
|
||||
|
||||
Reference in New Issue
Block a user