Skip to content

Commit

Permalink
dashboard: taken zero division fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mguikema committed Sep 19, 2024
1 parent e38a431 commit fbdaf4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/apps/dashboard/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fbdaf4e

Please sign in to comment.