From 27ebc639f4976dfe6283e2851ce5689def366675 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Tue, 26 May 2020 15:20:13 +0000 Subject: [PATCH] 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 --- ietf/meeting/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/meeting/views.py b/ietf/meeting/views.py index a8b657a2b..44977f5f7 100644 --- a/ietf/meeting/views.py +++ b/ietf/meeting/views.py @@ -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 = {}