Skip to content

Commit 27ebc63

Browse files
committed
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
1 parent 92eee9e commit 27ebc63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def cubehelix(i, total, hue=1.2, start_angle=0.5):
606606
), key=lambda p: p.acronym)
607607
for i, p in enumerate(session_parents):
608608
rgb_color = cubehelix(i, len(session_parents))
609-
p.scheduling_color = "#" + "".join( hex(int(round(x * 255)))[2:] for x in rgb_color)
609+
p.scheduling_color = "rgb({}, {}, {})".format(*tuple(int(round(x * 255)) for x in rgb_color))
610610

611611
# dig out historic AD names
612612
ad_names = {}

0 commit comments

Comments
 (0)