* Preview image: render price_rub as integer (without decimal places)

This commit is contained in:
Phil Zhitnikov 2023-07-17 20:52:16 +04:00
parent 9e04fa354f
commit 959ae4536d

View File

@ -90,7 +90,7 @@ def create_preview(source_image: str, size=None, price_rub=None, title_lines=Non
# Draw price # Draw price
if price_rub: if price_rub:
price_text = f"{price_rub}" price_text = f"{int(price_rub)}"
price_font = get_font(50) price_font = get_font(50)
price_x, price_y = hor_padding + 15, preview_height - 100 price_x, price_y = hor_padding + 15, preview_height - 100