From 1a342d9a2292a7bbc90b109ea5d189629ee30169 Mon Sep 17 00:00:00 2001 From: Shivam Gutgutia Date: Mon, 25 Dec 2023 23:53:38 +0530 Subject: [PATCH] fix: dependencies causing deployment issues --- utils/__init__.py | 2 +- utils/validateNumbers.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/utils/__init__.py b/utils/__init__.py index c1a3a3a..b7bf005 100644 --- a/utils/__init__.py +++ b/utils/__init__.py @@ -1,3 +1,3 @@ from .createDf import createDf from .vcfGenerator import generateVcard,generateVcf -from .validateNumbers import validatePhoneNumber \ No newline at end of file +# from .validateNumbers import validatePhoneNumber \ No newline at end of file diff --git a/utils/validateNumbers.py b/utils/validateNumbers.py index b29c310..eb97683 100644 --- a/utils/validateNumbers.py +++ b/utils/validateNumbers.py @@ -1,8 +1,8 @@ -import phonenumbers +# import phonenumbers -def validatePhoneNumber(number): - try: - parsedNumber = phonenumbers.parse(number) - return phonenumbers.is_valid_number(parsedNumber) - except phonenumbers.phonenumberutil.NumberParseException as e: - return False \ No newline at end of file +# def validatePhoneNumber(number): +# try: +# parsedNumber = phonenumbers.parse(number) +# return phonenumbers.is_possible_number(parsedNumber) +# except phonenumbers.phonenumberutil.NumberParseException as e: +# return False \ No newline at end of file