From d75a8eaf67c49acd2b28ec2415646a1d455d7501 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 24 Oct 2022 23:58:14 +0300 Subject: [PATCH] fix validate time --- helpers/answer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/answer.py b/helpers/answer.py index 798c075..f74e88e 100644 --- a/helpers/answer.py +++ b/helpers/answer.py @@ -186,7 +186,7 @@ class Answer(BaseAnswer): minutes = int(minutes) except ValueError: return False - if hours < 0 or hours > 23 or minutes < 0 and minutes > 59: + if hours < 0 or hours > 23 or minutes < 0 or minutes > 59: return False return True