From 8605393e5e010b4d62afcb98f04285299ce389f1 Mon Sep 17 00:00:00 2001 From: Deep Ganguli Date: Tue, 18 Feb 2014 10:29:31 -0800 Subject: [PATCH] filters.py: bug fix to show() method --- pydruid/utils/filters.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pydruid/utils/filters.py b/pydruid/utils/filters.py index 4cfa0f3b..ecfde90c 100644 --- a/pydruid/utils/filters.py +++ b/pydruid/utils/filters.py @@ -13,10 +13,10 @@ # See the License for the specific language governing permissions and # limitations under the License. # +import simplejson as json class Filter: - def __init__(self, **args): if 'type' not in args.keys(): @@ -55,7 +55,6 @@ def __invert__(self): class Dimension: - def __init__(self, dim): self.dimension = dim @@ -63,5 +62,5 @@ def __eq__(self, other): return Filter(dimension=self.dimension, value=other) -def build_filter(filterObj): - return filterObj.filter['filter'] +def build_filter(filter_obj): + return filter_obj.filter['filter']