Skip to content

Commit

Permalink
str to int
Browse files Browse the repository at this point in the history
  • Loading branch information
pyDez committed Nov 25, 2024
1 parent 54f201e commit b6e0129
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions envergo/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ def form_valid(self, form):
body = {
"email": form.cleaned_data["email"],
"includeListIds": [
settings.BREVO["NEWSLETTER_LISTS"].get(
form.cleaned_data["type"],
settings.BREVO["NEWSLETTER_LISTS"]["autre"],
int(
settings.BREVO["NEWSLETTER_LISTS"].get(
form.cleaned_data["type"],
settings.BREVO["NEWSLETTER_LISTS"]["autre"],
)
)
],
"attributes": {
Expand Down

0 comments on commit b6e0129

Please sign in to comment.