From c696c660e53da9fad49fdd1b1840543ae9e3ed04 Mon Sep 17 00:00:00 2001 From: Mehul Kumar Nirala Date: Fri, 10 May 2019 16:34:30 +0530 Subject: [PATCH] Update bday.py --- bday.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bday.py b/bday.py index 75c93f1..ba90b74 100644 --- a/bday.py +++ b/bday.py @@ -24,7 +24,8 @@ def get_bday(rollno, start_date, end_date): br["dob"] = single_date.strftime("%d-%m-%Y") response = br.submit() - if len(response.readlines())!=330: + X = response.readlines() + if "Date of Birth does not match" not in X[275]: flag = 0 print single_date.strftime("%d-%m-%Y") break