Skip to content

Commit e69624b

Browse files
renzonrenzon
authored andcommitted
Use utm source as the variable name.
1 parent bd8bd54 commit e69624b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎pythonpro/email_marketing/facade.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def create_or_update_user(name: str, email: str, role: str, *tags, id='0', phone
9595
}
9696
if phone is not None:
9797
data['phone'] = phone
98-
# if utm_source is not None:
99-
# data['field[%utm_source%]'] = utm_source
98+
if utm_source is not None:
99+
data['field[%UTMSOURCE%]'] = utm_source
100100
if id == _normalise_id('0'):
101101
contact = _client.contacts.create_contact(data)
102102
else:

0 commit comments

Comments
 (0)