From 3a6d26e53877defd65110bcb70fa278917f60a1a Mon Sep 17 00:00:00 2001 From: Josh Temple <8672171+joshtemple@users.noreply.github.com> Date: Wed, 23 Oct 2019 17:32:55 -0500 Subject: [PATCH] Fix bug with bind_filters (Closes #30) --- lkml/keys.py | 2 +- lkml/serializer.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lkml/keys.py b/lkml/keys.py index af2ecc0..00d3ee0 100644 --- a/lkml/keys.py +++ b/lkml/keys.py @@ -16,7 +16,7 @@ "dimension_group", "filter", "access_filter", - "bind_filters", + "bind_filter", "map_layer", "parameter", "set", diff --git a/lkml/serializer.py b/lkml/serializer.py index e34f5ea..cc6b614 100644 --- a/lkml/serializer.py +++ b/lkml/serializer.py @@ -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"