Skip to content

Commit

Permalink
Merge pull request #61 from terrysclaw/patch-2
Browse files Browse the repository at this point in the history
Update parser.py
  • Loading branch information
amleczko committed Jul 24, 2015
2 parents 7f1361c + dc738d2 commit 7dc3acf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eve_sqlalchemy/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def parse_dictionary(filter_dict, model):
# firts let's check with the expression parser

try:
conditions += parse('{0}{1}'.format(k, v), model)
if(type(v) is unicode):
conditions += parse('{0}{1}'.format(k, v.encode('utf-8')), model)
else:
conditions += parse('{0}{1}'.format(k, v), model)
except ParseError:
pass
else:
Expand Down

0 comments on commit 7dc3acf

Please sign in to comment.