Skip to content

Commit

Permalink
filters.py: bug fix to show() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Deep Ganguli committed Feb 18, 2014
1 parent 6c9b7d5 commit 8605393
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pydruid/utils/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -55,13 +55,12 @@ def __invert__(self):


class Dimension:

def __init__(self, dim):
self.dimension = dim

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']

0 comments on commit 8605393

Please sign in to comment.