Fix bug in hex conversion (missing digit) in meetings schedule editor

by switching to rgb() notation instead - fixes problem with art area
not having a color
 - Legacy-Id: 17885
This commit is contained in:
Ole Laursen 2020-05-26 15:20:13 +00:00
parent 92eee9ebdc
commit 27ebc639f4

View file

@ -606,7 +606,7 @@ def edit_meeting_schedule(request, num=None, owner=None, name=None):
), key=lambda p: p.acronym)
for i, p in enumerate(session_parents):
rgb_color = cubehelix(i, len(session_parents))
p.scheduling_color = "#" + "".join( hex(int(round(x * 255)))[2:] for x in rgb_color)
p.scheduling_color = "rgb({}, {}, {})".format(*tuple(int(round(x * 255)) for x in rgb_color))
# dig out historic AD names
ad_names = {}