From 96dd773e5d690788c9784755a012944ee9ba6804 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 6 Dec 2024 12:27:24 +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=D0=B1=D0=B0=D0=B3=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B5=D1=81=D1=83=D1=89=D0=B5=D1=81=D1=82=D0=B2=D1=83=D1=8E?= =?UTF-8?q?=D1=89=D0=B5=D0=B9=20=D0=B4=D0=B0=D1=82=D1=8B=20=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D1=82=D0=B8=D1=81=D1=82=D0=B8=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.py b/api.py index 34db932..0a457ab 100644 --- a/api.py +++ b/api.py @@ -352,6 +352,8 @@ def add_time(it: Add_time): db['id'][id]['bal'] += amount # Статистика date = datetime.today().strftime('%Y-%m-%d') + if date not in stat: + stat_run(0) # Для пользователя t2c_date = db['id'][id]['time2cdm'][1] if t2c_date != date: