Skip to content

Commit

Permalink
fix(eventbrite): email does not have a primary attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Jul 6, 2023
1 parent 38d0a56 commit 48c34d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion allauth/socialaccount/providers/eventbrite/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def extract_email_addresses(self, data):
EmailAddress(
email=email.get("email"),
verified=email.get("verified"),
primary=email.get("primary"),
)
)

Expand Down
3 changes: 1 addition & 2 deletions allauth/socialaccount/providers/eventbrite/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ def get_mocked_response(self):
"""{
"emails": [{
"email": "[email protected]",
"verified": "True",
"primary": "True"
"verified": true,
}],
"id": "999999999",
"name": "Andrew Godwin",
Expand Down

0 comments on commit 48c34d6

Please sign in to comment.