Permalink
Browse files

Fix defect where filter settings overwrite instead of accumulating.

  • Loading branch information...
1 parent 212fcb1 commit 458013580d3a8c19d184187cdedc44f83f955e09 @dmcguire81 dmcguire81 committed Jan 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sendgrid/header.py
View
@@ -71,7 +71,7 @@ def set_section(self, val):
def add_filter_setting(self, fltr, setting, val):
if 'filters' not in self.data:
self.data['filters'] = {}
- if fltr not in self.data:
+ if fltr not in self.data['filters']:
self.data['filters'][fltr] = {}
if 'settings' not in self.data['filters'][fltr]:
self.data['filters'][fltr]['settings'] = {}

0 comments on commit 4580135

Please sign in to comment.