Skip to content

Commit

Permalink
Fix bug where inline_images is set by default in content
Browse files Browse the repository at this point in the history
Resolves #102 
Resolves #103
  • Loading branch information
amatissart authored and richleland committed Apr 8, 2016
1 parent 84dc850 commit 17d60a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sparkpost/transmissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ def _translate_keys(self, **kwargs):
model['content']['attachments'] = self._extract_attachments(
attachments)

inline_images = kwargs.get('inline_images', [])
model['content']['inline_images'] = self._extract_attachments(
inline_images)
if 'inline_images' in kwargs:
inline_images = kwargs['inline_images']
model['content']['inline_images'] = self._extract_attachments(
inline_images)

return model

Expand Down

0 comments on commit 17d60a1

Please sign in to comment.