mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Crashing on empty groups
This commit is contained in:
parent
91ea307b66
commit
45c5a0f682
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ def group(group_id):
|
||||||
|
|
||||||
# Check contrast for the first image in the group for the banner
|
# Check contrast for the first image in the group for the banner
|
||||||
text_colour = 'rgb(var(--fg-black))'
|
text_colour = 'rgb(var(--fg-black))'
|
||||||
if images[0]:
|
if images:
|
||||||
text_colour = contrast.contrast(images[0].image_colours[0],
|
text_colour = contrast.contrast(images[0].image_colours[0],
|
||||||
'rgb(var(--fg-black))',
|
'rgb(var(--fg-black))',
|
||||||
'rgb(var(--fg-white))')
|
'rgb(var(--fg-white))')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue