diff --git a/app/apps/dashboard/tables.py b/app/apps/dashboard/tables.py index 6459c071..8706e1d6 100644 --- a/app/apps/dashboard/tables.py +++ b/app/apps/dashboard/tables.py @@ -800,7 +800,7 @@ def get_kleur(i, max): hr = 7 h = i - 2 max = max - 2 - step = h / (max - 1) + step = h / (max - 1) if max > 1 else 0 ll = hr * step h = round(hr - ll) h = hex(h)