Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix defect where filter settings overwrite instead of accumulating.

  • Loading branch information...
commit 458013580d3a8c19d184187cdedc44f83f955e09 1 parent 212fcb1
@dmcguire81 dmcguire81 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sendgrid/header.py
View
2  sendgrid/header.py
@@ -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'] = {}
Please sign in to comment.
Something went wrong with that request. Please try again.