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: