Skip to content

Commit

Permalink
Merge pull request #1 from vvmruder/fix-filter-encoding
Browse files Browse the repository at this point in the history
Fixed encoding issue in filter parameter.
  • Loading branch information
vvmruder committed Oct 12, 2015
2 parents 4b290de + 0a6f15b commit 911ea11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def __decide_filter__(self, filter):
operator = filter.get('operator')
column_name = filter.get('column')
value = filter.get('value')
if isinstance(value, basestring):
value = value.encode('utf-8')
for col in self.mapped_class.__table__.columns:
if col.name == column_name:
if operator == '=':
Expand Down

0 comments on commit 911ea11

Please sign in to comment.