From 19f5c91c0800f28490e9a36c64ca2c4bd1b4e804 Mon Sep 17 00:00:00 2001 From: HypoxiE Date: Tue, 22 Jul 2025 10:00:03 +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=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20Tim?= =?UTF-8?q?eFormater=20=D0=B2=20CheckDataBasesRun?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exclude.txt | 7 +++++-- src/CoreMod.py | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/exclude.txt b/exclude.txt index 55641d2..bed2072 100644 --- a/exclude.txt +++ b/exclude.txt @@ -1,6 +1,9 @@ venv/ +nb_venv/ +pc_venv/ +docs/ __pycache__/ *.pyc +.git/ .env -.secrets -backups/ \ No newline at end of file +backups/ diff --git a/src/CoreMod.py b/src/CoreMod.py index f278e7c..f56245b 100644 --- a/src/CoreMod.py +++ b/src/CoreMod.py @@ -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):