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):