fix broken random color generator
This commit is contained in:
parent
7b641843b8
commit
e1439b4cd2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue