From d7813e2b42ec384413988a4a3694408310b6519f Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Thu, 1 Dec 2022 17:13:01 +1000 Subject: [PATCH] fix time null day --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 3b89cef..ed6ab04 100644 --- a/bot.py +++ b/bot.py @@ -74,7 +74,7 @@ async def ident(message: types.Message): diff = now_time.day - last_time.day - if diff <= 0: + if abs(diff) <= 0: await bot.send_message(message.chat.id, f'@{message.from_user.username},🚫 Π²Ρ‹ ΡƒΠΆΠ΅ ΠΊΡ€ΡƒΡ‚ΠΈΠ»ΠΈ пипису, Π΅Π΅ Ρ€Π°Π·ΠΌΠ΅Ρ€ {b.dick_size} см! ') session.close_all() print(diff)