* Preview image: render price_rub as integer (without decimal places)
This commit is contained in:
parent
9e04fa354f
commit
959ae4536d
|
|
@ -90,7 +90,7 @@ def create_preview(source_image: str, size=None, price_rub=None, title_lines=Non
|
|||
|
||||
# Draw price
|
||||
if price_rub:
|
||||
price_text = f"{price_rub} ₽"
|
||||
price_text = f"{int(price_rub)} ₽"
|
||||
price_font = get_font(50)
|
||||
price_x, price_y = hor_padding + 15, preview_height - 100
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user