Merge branch 'm-urban-fix-match-ignore'

Fix #1487
This commit is contained in:
Markus Unterwaditzer 2015-06-01 22:02:08 +02:00
commit 6e8f06679c

View file

@ -357,7 +357,7 @@ def _add_candidate(items, results, info):
dist = distance(items, info, mapping)
# Skip matches with ignored penalties.
penalties = [key for _, key in dist]
penalties = [key for key, _ in dist]
for penalty in config['match']['ignored'].as_str_seq():
if penalty in penalties:
log.debug(u'Ignored. Penalty: {0}', penalty)