fix broken random color generator

This commit is contained in:
Will 2023-06-16 21:13:04 -04:00
parent 7b641843b8
commit e1439b4cd2

View file

@ -64,7 +64,7 @@ def get_unique_color() -> str:
i += 1 i += 1
else: else:
# Generate random color if we've already used the 12 preset ones # Generate random color if we've already used the 12 preset ones
c = "#%06x".format(random.randint(0, 0xFFFFFF)) c = '#'.join([f"{random.randint(0, 255):02x}" for _ in range(3)])
return c return c