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 "