From 959ae4536dbb5dd020b14bb3311b9c53fa805ee1 Mon Sep 17 00:00:00 2001 From: phzhik Date: Mon, 17 Jul 2023 20:52:16 +0400 Subject: [PATCH] * Preview image: render price_rub as integer (without decimal places) --- store/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/utils.py b/store/utils.py index c8ff7f1..0fccc07 100644 --- a/store/utils.py +++ b/store/utils.py @@ -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