From 3751e93ad8eb0ed876698f03e9528056487b27cf Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 6 Sep 2024 06:48:50 +0000 Subject: [PATCH] removes SB1 and SB2 from conversion --- .../conversion/translation/external_conversion.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 kitchen_counter/conversion/translation/external_conversion.py diff --git a/kitchen_counter/conversion/translation/external_conversion.py b/kitchen_counter/conversion/translation/external_conversion.py old mode 100644 new mode 100755 index 97b3a60..5d959ac --- a/kitchen_counter/conversion/translation/external_conversion.py +++ b/kitchen_counter/conversion/translation/external_conversion.py @@ -152,14 +152,14 @@ class Conversion: status.save() to_email = [self.user.email] email_code = 'SB1' - sendmail(to_email=to_email, email_code=email_code,key_value={"script_name":self.name_script}) + #sendmail(to_email=to_email, email_code=email_code,key_value={"script_name":self.name_script}) except Exception as e: print("Error of Audit is:", e) status.status = "FAILURE" status.save() to_email = [self.user.email] email_code = 'SB2' - sendmail(to_email=to_email, email_code=email_code,key_value={"script_name":self.name_script}) + #sendmail(to_email=to_email, email_code=email_code,key_value={"script_name":self.name_script}) print( "Script Audit failed due to some internal error." " If you have made any payment for conversion " @@ -183,7 +183,7 @@ class Conversion: script_data.save() # to_email = [self.user.email] # email_code = 'SB1' - # sendmail(to_email=to_email, email_code=email_code,key_value={"script_name":self.name_script}) + #sendmail(to_email=to_email, email_code=email_code,key_value={"script_name":self.name_script}) try: df = pd.read_csv(file_path_, encoding="utf-8") except UnicodeError: @@ -246,13 +246,13 @@ class Conversion: status.save() to_email = [self.user.email] email_code = 'SB1' - sendmail(to_email=to_email, email_code=email_code,key_value={"script_name":self.name_script}) + #sendmail(to_email=to_email, email_code=email_code,key_value={"script_name":self.name_script}) except: status.status = "FAILURE" status.save() to_email = [self.user.email] email_code = 'SB2' - sendmail(to_email=to_email, email_code=email_code,key_value={"script_name":self.name_script}) + #sendmail(to_email=to_email, email_code=email_code,key_value={"script_name":self.name_script}) print( "Script Audit failed due to some internal error." " If you have made any payment for conversion "