From 2eaa5fd14e6540177417a7836da63d33544788a5 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Mon, 6 May 2024 23:22:13 +0200 Subject: [PATCH] Fixed scale --- src/endpoints/handlers/bett.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/endpoints/handlers/bett.py b/src/endpoints/handlers/bett.py index fd17b43..16a3328 100644 --- a/src/endpoints/handlers/bett.py +++ b/src/endpoints/handlers/bett.py @@ -84,8 +84,9 @@ def check_for_change(): global show_scale_countdown global empty_weight latest = local_history[-1] - if show_scale_countdown > 0 and show_scale_countdown % 3 == 0: - show_scale(latest["total"] - empty_weight) + if show_scale_countdown > 0: + if show_scale_countdown % 3 == 0: + show_scale(latest["total"] - empty_weight) show_scale_countdown -= 1 elif show_scale_countdown == 0: show_scale_countdown -= 1