Private
Public Access
1
0

monitoring ftp

This commit is contained in:
Sander Roosendaal
2022-12-17 16:27:36 +01:00
parent 55ac4245d2
commit a7a33d0d17
9 changed files with 69 additions and 13 deletions

View File

@@ -1712,6 +1712,24 @@ def handle_sendemail_expired(useremail, userfirstname, userlastname, expireddate
d, cc=['support@rowsandall.com'], **kwargs)
return 1
@app.task
def handle_sendemail_newftp(power,rower,mode, **kwargs):
subject = "You may want to update your FTP on rowsandall.com"
from_email = 'Rowsandall <info@rowsandall.com>'
d = {
'first_name': rower.user.first_name,
'last_name': rower.user.last_name,
'siteurl': siteurl,
'ftp': r.ftp,
'newftp': power,
}
_ = send_template_email(from_email, [r.user.email],
subject, 'newftpemail.html',
d, **kwargs)
return 1
@app.task
def handle_sendemail_breakthrough(workoutid, useremail,