From bdf74c433ea8f03fc6622599e7ff2e805b7261bf Mon Sep 17 00:00:00 2001 From: Holger Seehausen Date: Sun, 21 Aug 2022 08:45:01 +0200 Subject: [PATCH] Change min/max range to float --- bin/user/historygenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/user/historygenerator.py b/bin/user/historygenerator.py index d945ff0..c462f40 100644 --- a/bin/user/historygenerator.py +++ b/bin/user/historygenerator.py @@ -314,7 +314,7 @@ def _colorCell(self, value, format_string, bgColours): cellText = "= int(c[0])) and (value <= int(c[1])): + if (value >= float(c[0])) and (value <= float(c[1])): cellText += " bgcolor = \"%s\"" % c[2] formatted_value = format_string % value