Skip to content

Commit

Permalink
don't try to use max/min on non numeric shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Feb 28, 2024
1 parent 350281e commit 006f712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down

0 comments on commit 006f712

Please sign in to comment.