From 006f712eeb636d9d9f2e47f57cfccd5f8e63267d Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 21 Feb 2024 15:49:06 +0000 Subject: [PATCH] don't try to use max/min on non numeric shaders --- hub/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/models.py b/hub/models.py index a2b218909..2252795e3 100644 --- a/hub/models.py +++ b/hub/models.py @@ -190,7 +190,7 @@ def colours_for_areas(self, areas): "label": self.label, } - if colours.get(value.gss, None) is None: + if self.is_number and colours.get(value.gss, None) is None: shade = self.shade(data, mininimum, maximum) if shade is not None: colours[value.gss] = {