Skip to content

Commit

Permalink
Merge branch 'mailchimp-tagging' of https://github.com/hedyorg/hedy i…
Browse files Browse the repository at this point in the history
…nto mailchimp-tagging
  • Loading branch information
Felienne committed Sep 25, 2024
2 parents 17332dd + 41ec2d0 commit 08664f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def create_class(self, user):

request_body = {"tags": [{"name": "class_created", "status": "active"}]}
try:
r = requests.post(MAILCHIMP_API_URL + f"/members/{subscriber_hash}/tags", headers=MAILCHIMP_API_HEADERS, data=json.dumps(request_body))
r = requests.post(MAILCHIMP_API_URL + f"/members/{subscriber_hash}/tags",
headers=MAILCHIMP_API_HEADERS, data=json.dumps(request_body))
except Exception as E:
pass

Expand Down

0 comments on commit 08664f8

Please sign in to comment.