Skip to content

Commit

Permalink
Fix bug with bind_filters (Closes #30)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtemple committed Oct 24, 2019
1 parent 46b7917 commit 3a6d26e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lkml/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dimension_group",
"filter",
"access_filter",
"bind_filters",
"bind_filter",
"map_layer",
"parameter",
"set",
Expand Down
4 changes: 3 additions & 1 deletion lkml/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def expand_list(self, key: str, values: Sequence) -> Iterator[str]:
A generator of serialized string chunks
"""
modified_key = key.rstrip("s") if key not in ("filters") else key
modified_key = (
key.rstrip("s") if key not in ("filters", "bind_filters") else key
)
for i, value in enumerate(values):
if i > 0:
yield "\n"
Expand Down

0 comments on commit 3a6d26e

Please sign in to comment.