removes SB1 and SB2 from conversion

This commit is contained in:
Ubuntu 2024-09-06 06:48:50 +00:00
parent be7d3283ed
commit 3751e93ad8
1 changed files with 5 additions and 5 deletions

View File

@ -152,14 +152,14 @@ class Conversion:
status.save() status.save()
to_email = [self.user.email] to_email = [self.user.email]
email_code = 'SB1' 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: except Exception as e:
print("Error of Audit is:", e) print("Error of Audit is:", e)
status.status = "FAILURE" status.status = "FAILURE"
status.save() status.save()
to_email = [self.user.email] to_email = [self.user.email]
email_code = 'SB2' 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( print(
"Script Audit failed due to some internal error." "Script Audit failed due to some internal error."
" If you have made any payment for conversion " " If you have made any payment for conversion "
@ -183,7 +183,7 @@ class Conversion:
script_data.save() script_data.save()
# to_email = [self.user.email] # to_email = [self.user.email]
# email_code = 'SB1' # 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: try:
df = pd.read_csv(file_path_, encoding="utf-8") df = pd.read_csv(file_path_, encoding="utf-8")
except UnicodeError: except UnicodeError:
@ -246,13 +246,13 @@ class Conversion:
status.save() status.save()
to_email = [self.user.email] to_email = [self.user.email]
email_code = 'SB1' 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: except:
status.status = "FAILURE" status.status = "FAILURE"
status.save() status.save()
to_email = [self.user.email] to_email = [self.user.email]
email_code = 'SB2' 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( print(
"Script Audit failed due to some internal error." "Script Audit failed due to some internal error."
" If you have made any payment for conversion " " If you have made any payment for conversion "