remotes/origin/feature/LIL-711
gzbender 7 years ago
parent b07e841419
commit bc71eeb908
  1. 2
      apps/notification/tasks.py

@ -93,7 +93,9 @@ def sendgrid_update_recipients():
'last_school_purchase': last_school_purchase,
'gender': {User.NOT_DEFINED: '', User.MALE: 'Мужчина', User.FEMALE: 'Женщина'}[user.gender],
'birthday': user.birthday and user.birthday.strftime(date_format),
'date_joined': user.date_joined.strftime(date_format),
})
sg = get_sendgrid_client()
response = sg.client.contactdb.recipients.patch(request_body=data)
print(response.body)

Loading…
Cancel
Save