removes SB1 and SB2 from conversion
This commit is contained in:
parent
be7d3283ed
commit
3751e93ad8
|
@ -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 "
|
||||||
|
@ -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 "
|
||||||
|
|
Loading…
Reference in New Issue