From 7285800e76bdb015bd3f32fce89d05dc593c29b2 Mon Sep 17 00:00:00 2001 From: roShan <45506201+truroshan@users.noreply.github.com> Date: Fri, 4 Jun 2021 00:21:04 +0530 Subject: [PATCH] Update cowin.py --- cowin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowin.py b/cowin.py index 8ca47a0..791a15c 100644 --- a/cowin.py +++ b/cowin.py @@ -216,7 +216,7 @@ class CoWinBook(): print(f'Waiting for OTP {i} sec') self.set_cursor() - d1 = datetime.strptime(last_msg.get("received","2019-12-01 09:09"), '%Y-%m-%d %H:%M') + d1 = datetime.strptime(last_msg.get("received","2019-12-01 09:09:09"), '%Y-%m-%d %H:%M:%S') d2 = datetime.now() # current date and time diff = (d2 - d1).total_seconds() if (curr_msg_body != last_msg_body and "cowin" in last_msg_body.lower()) or diff <= OTP_VALID_DURATION_SECONDS: