Skip to content

Commit

Permalink
oops; was including non-matches on fuzzy results
Browse files Browse the repository at this point in the history
  • Loading branch information
lalomartins committed Jun 14, 2015
1 parent dc3ef57 commit 25df3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uniemoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def filter(self, query, candidates = None):
score += 2
elif [j2] == ' ':
score += 1
if score >= 0:
if score > 0:
matched.append([0, score, candidate])
matched.sort(reverse=True)
return matched[:MATCH_LIMIT]
Expand Down

0 comments on commit 25df3fa

Please sign in to comment.