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:
parent
92eee9ebdc
commit
27ebc639f4
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in a new issue