From 9a61087814b52d4cd71720ec59fcba2d3fbb8ca9 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Tue, 27 Oct 2026 20:03:07 +0000 Subject: [PATCH] Derive dashboard colors from UTF-8 function names --- great_ai/helper/text_to_hex_color.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/great_ai/helper/text_to_hex_color.py b/great_ai/helper/text_to_hex_color.py index 62acb98..4724f17 100644 --- a/great_ai/helper/text_to_hex_color.py +++ b/great_ai/helper/text_to_hex_color.py @@ -3,10 +3,10 @@ from hashlib import md5 def text_to_hex_color(text: str) -> str: - ascii_bytes = text.encode("ascii") + encoded_text = text.encode("utf-8") digest = md5( - ascii_bytes + encoded_text ).hexdigest() # the built-in hash function is salted differently in each process integer = int(digest, 16)