Linter fixes for models
This commit is contained in:
parent
d8d6f57373
commit
59938e2d46
6 changed files with 19 additions and 15 deletions
|
@ -166,9 +166,7 @@ def generate_rating_layer(rating, content_width):
|
|||
rating_layer_base = Image.new(
|
||||
"RGBA", (content_width, icon_size), color=TRANSPARENT_COLOR
|
||||
)
|
||||
rating_layer_color = Image.new(
|
||||
"RGBA", (content_width, icon_size), color=TEXT_COLOR
|
||||
)
|
||||
rating_layer_color = Image.new("RGBA", (content_width, icon_size), color=TEXT_COLOR)
|
||||
rating_layer_mask = Image.new(
|
||||
"RGBA", (content_width, icon_size), color=TRANSPARENT_COLOR
|
||||
)
|
||||
|
@ -369,9 +367,7 @@ def generate_site_preview_image_task():
|
|||
"text_three": site.instance_tagline,
|
||||
}
|
||||
|
||||
image = generate_preview_image(
|
||||
texts=texts, picture=logo, show_instance_layer=False
|
||||
)
|
||||
image = generate_preview_image(texts=texts, picture=logo, show_instance_layer=False)
|
||||
|
||||
save_and_cleanup(image, instance=site)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue