This commit is contained in:
@@ -700,6 +700,8 @@ def machine_show(maschine_id):
|
||||
"ist_h": fmt_num(ist_h),
|
||||
# Abweichung der zuletzt gebuchten Rate vom Soll pro Stunde.
|
||||
"abweichung": fmt_num(round(ist_h - soll_h, 2)),
|
||||
# Grün ab 0 (Soll erreicht oder übertroffen), Rot bei Unterschreitung.
|
||||
"abweichung_positiv": round(ist_h - soll_h, 2) >= 0,
|
||||
}
|
||||
cur.execute(
|
||||
'SELECT id, timestamp, status, produziert, h_avg, p_grund FROM "MDE" '
|
||||
|
||||
Reference in New Issue
Block a user