From f2c89abe1ce4843dc5dfefc8cc79eda72142693b Mon Sep 17 00:00:00 2001 From: erjemin Date: Sat, 31 Dec 2022 02:57:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8C=D1=8E=D1=88=D0=BA=D0=B0=20:=20?= =?UTF-8?q?=D0=92=D1=8B=D0=B4=D0=B0=D1=87=D0=B0=20=D0=BF=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D0=B9=20--=20minor=20(?= =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BD=D1=8B=20=D0=BE=D1=82=D0=BB=D0=B0?= =?UTF-8?q?=D0=B4=D0=BE=D1=87=D0=BD=D1=8B=D0=B5=20print)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oknardia/web/prices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oknardia/web/prices.py b/oknardia/web/prices.py index 9333dd4..a1ce1e9 100644 --- a/oknardia/web/prices.py +++ b/oknardia/web/prices.py @@ -237,7 +237,7 @@ def report_price_frame(apartment_id: int, mount_dim_per_offer: int, address_long # address_latitude) else: distance = -1 - print(discount) + #p rint(discount) if discount > 99 or discount < 0.1: discount_color1 = "" discount_color2 = "" @@ -245,7 +245,7 @@ def report_price_frame(apartment_id: int, mount_dim_per_offer: int, address_long color_ratio = (discount + 0.) / 100 discount_color1 = f"#{255 - int(color_ratio * 128):02x}ff{255 - int(color_ratio * 128):02x}" discount_color2 = f"#{255 - int(color_ratio * 255):02x}ff{255 - int(color_ratio * 255):02x}" - print(discount_color1, discount_color2) + #p rint(discount_color1, discount_color2) price_frame.append({ 'DISTANCE': distance, 'DIM': dim_in_offer,