[F] Fix #35 python 3.11 compatibility

This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-11-03 23:35:21 -04:00
parent d56f083dbc
commit e8c7266671
No known key found for this signature in database
GPG key ID: E289FAC0DA92DD2B
3 changed files with 5 additions and 7 deletions

View file

@ -295,7 +295,7 @@ def create_config() -> Config:
if random_count > len(perm):
choices = perm
else:
choices = random.sample(perm, random_count)
choices = random.sample(sorted(perm), random_count)
choices = [{slots[i]: n for i, n in enumerate(c)} for c in choices]
arrangements += [(f'random{i}', ColorAlignment('custom', r)) for i, r in enumerate(choices)]
asciis = [[*ca.recolor_ascii(asc, _prs).split('\n'), k.center(asc_width)] for k, ca in arrangements]