Skip to content

Commit

Permalink
Merge pull request #28 from edx/dsego/SOL-1069-addendum
Browse files Browse the repository at this point in the history
unicodefiy SOL-1069
  • Loading branch information
dsego committed Jul 22, 2015
2 parents 7ee64d4 + 7a8db3c commit caff669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/tests/mock_search_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def value_matches(doc, field_name, field_value):
return any((item == compare_value for item in field_value))

elif _is_iterable(compare_value) and _is_iterable(field_value):
return len(frozenset(compare_value).intersection(field_value)) > 0
return any((unicode(item) in field_value for item in compare_value))

else:
return compare_value == field_value
Expand Down

0 comments on commit caff669

Please sign in to comment.