From d9d7a4256cbcfc4b9b0b687785f6b2d1b8b6f414 Mon Sep 17 00:00:00 2001 From: Ayush Jain Date: Fri, 1 Jan 2021 10:39:21 +0530 Subject: [PATCH] Updated PhoneBook.py Unnecessary print statements removed. --- PhoneBook.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/PhoneBook.py b/PhoneBook.py index 0b477a0..ab59062 100644 --- a/PhoneBook.py +++ b/PhoneBook.py @@ -114,7 +114,6 @@ def delete(self): def intcheck(self, num): for i in num: - print(i) if ord(i) > 57 or ord(i) < 48: return False return True @@ -136,7 +135,6 @@ def save(): if FN == "" or LN == "" or MN == "" or PN == "" or EI == "" or IH == "" or NS == "": result = tkMessageBox.showwarning( 'Error : All Fields Not Filled', 'Please Complete The Required Fields', icon="warning") - print(self.intcheck(MN), self.intcheck(PN)) if self.intcheck(MN) == False or self.intcheck(PN) == False: result = tkMessageBox.showwarning('Error : Invalid Mobile or Phone Number', @@ -147,10 +145,6 @@ def save(): f'SELECT * FROM CONTACTS_TABLE WHERE Mobile_Number = {int(MN)}') res = self.cursor.fetchall() if len(res) == 0: - - print( - F"""INSERT INTO CONTACTS_TABLE VALUES({FN},{LN},{MN},{PN},{EI},{IH},{NS})""") - self.cursor.execute(F"""INSERT INTO CONTACTS_TABLE VALUES( '{FN}','{LN}',{MN},{PN},'{EI}','{IH}','{NS}') """)