From 126770e0086fb4243a6a3bd7572fa4c40583952d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 2 Nov 2024 10:21:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=80=D0=B0=D1=81=D1=87=D1=91=D1=82?= =?UTF-8?q?=D0=B0=20=D0=B2=D0=B2=D0=BE=D0=B4=D0=B0/=D0=B2=D1=8B=D0=B2?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=20=D0=B0=D0=BB=D0=BC=D0=B0=D0=B7=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.py b/api.py index eb5f9a4..ae6bd4e 100644 --- a/api.py +++ b/api.py @@ -418,7 +418,7 @@ def get_stat(it: Get_stat): stats = {'gbal': 0, 'average': 0, 'median': 0, 'time2cdm': 0, 'gbal_delta': '0', 'time2cdm_delta': '', 'min': 0, 'max': 0, - 'up_diamond': 0, 'up_time2cdm': 0} + 'up_diamond': 0} stat = read('stat.json') date = datetime.today().strftime('%Y-%m-%d') @@ -446,7 +446,7 @@ def get_stat(it: Get_stat): stats['time2cdm_delta'] = format_sign(round(time2cdm-time2cdm_y, 3)) stats['min'] = round(min([x for x in bals if x != 0]), 3) stats['max'] = round(max(bals), 3) - stats['up_diamond'] = round(gbal - (gbal_y + time2cdm + time2cdm_y), 3) + stats['up_diamond'] = round(gbal - (gbal_y + time2cdm), 3) return stats else: