fix validate time

This commit is contained in:
Administrator 2022-10-24 23:58:14 +03:00
parent e5398fd843
commit d75a8eaf67

View File

@ -186,7 +186,7 @@ class Answer(BaseAnswer):
minutes = int(minutes) minutes = int(minutes)
except ValueError: except ValueError:
return False 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 False
return True return True