Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Reinstore email in notify_signup_accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
lioneltrebuchon committed Nov 24, 2019
1 parent f52e0bc commit f48523b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions amivapi/events/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@ def notify_signup_accepted(event, signup):
deletion_link = url_for('emails.on_delete_signup', token=token,
_external=True)

print(deletion_link)
# mail([email],
# 'Eventsignup accepted',
# current_app.config['ACCEPT_EMAIL_TEXT'].format(
# name=name,
# title=event.get('title_en') or event.get('title_de'),
# link=deletion_link,
# deadline=event['time_register_end'].strftime('%H.%M %d.%m.%Y')))
mail([email],
'Eventsignup accepted',
current_app.config['ACCEPT_EMAIL_TEXT'].format(
name=name,
title=event.get('title_en') or event.get('title_de'),
link=deletion_link,
deadline=event['time_register_end'].strftime('%H.%M %d.%m.%Y')))


def send_confirmmail_to_unregistered_users(items):
Expand Down

0 comments on commit f48523b

Please sign in to comment.