Private
Public Access
1
0

removing google analytics and clicky

This commit is contained in:
Sander Roosendaal
2018-03-07 15:59:42 +01:00
parent ad71e8ff0d
commit 1a87d72a8d
5 changed files with 30 additions and 24 deletions

View File

@@ -385,6 +385,24 @@ def handle_sendemail_hard(workoutid, useremail,
return 1
# send email when user deletes account
@app.task
def handle_sendemail_userdeleted(name, email, debug=False, **kwargs):
fullemail = 'roosendaalsander@gmail.com'
subject = 'User account deleted'
message = 'Sander,\n\n'
message += 'The user {name} ({email}) has just deleted his account'.format(
name=name,
email=email
)
email = EmailMessage(subject,message,
'Rowsandall <info@rowsandall.com>',
[fullemail])
res = email.send()
return 1
# send email to me when an unrecognized file is uploaded
@app.task
def handle_sendemail_unrecognized(unrecognizedfile, useremail,