mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-03-30 07:05:29 +00:00
Lint
This commit is contained in:
parent
26f8710c6f
commit
c5eb27a7c5
1 changed files with 2 additions and 3 deletions
|
@ -71,8 +71,7 @@ def get_wrapped_text(text, font, content_width):
|
|||
low = 0
|
||||
high = len(text)
|
||||
|
||||
im = Image.new("RGB", (100, 100))
|
||||
draw = ImageDraw.Draw(im)
|
||||
draw = ImageDraw.Draw(Image.new("RGB", (100, 100)))
|
||||
|
||||
try:
|
||||
# ideal length is determined via binary search
|
||||
|
@ -156,7 +155,7 @@ def generate_texts_layer(texts, content_width):
|
|||
|
||||
if "text_three" in texts and texts["text_three"]:
|
||||
# Text three (Book authors, Site tagline, User address)
|
||||
text_three, text_height = get_wrapped_text(
|
||||
text_three, _ = get_wrapped_text(
|
||||
texts["text_three"], font_text_three, content_width
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue