Skip to content

Commit

Permalink
update create_email_campaigns method
Browse files Browse the repository at this point in the history
  • Loading branch information
z-station committed Feb 21, 2020
1 parent b38d14b commit 42a6141
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unisender/simple_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ def create_email_campaigns(self, campaigns: list, recipients: list,

campaign_ids = []
for campaign_num, campaign in enumerate(campaigns):
campaign.setdefault('email_data', {})
campaign.setdefault('campaign_data', {})
if default_email_data:
for key, val in default_email_data.items():
campaign['email_data'].setdefault(key, val)
Expand Down

0 comments on commit 42a6141

Please sign in to comment.