Исправлена ошибка TimeFormater в CheckDataBasesRun

This commit is contained in:
2025-07-22 10:00:03 +03:00
parent 56a9284c61
commit 19f5c91c08
2 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,9 @@
venv/
nb_venv/
pc_venv/
docs/
__pycache__/
*.pyc
.git/
.env
.secrets
backups/
backups/

View File

@@ -370,7 +370,7 @@ class MainBot(AnyBots):
if penalt.time_warn is None and penalt.time_end-datetime.datetime.now().timestamp()<=0:
penalt.time_end = None
penalt.time_warn = (self.TimeFormater("30d"))[0]
penalt.time_warn = self.TimeFormater("30d").timestamp
if (not penalt.time_warn is None) and (not penalt.time_end is None):
@@ -425,7 +425,7 @@ class MainBot(AnyBots):
if penalt.time_warn is None and penalt.time_end - datetime.datetime.now().timestamp() <= 0:
penalt.time_end = None
penalt.time_warn = (self.TimeFormater("30d"))[0]
penalt.time_warn = self.TimeFormater("30d").timestamp
if (not penalt.time_warn is None) and (not penalt.time_end is None):