Fix for swapped key and value in ignore-list-matching

This commit is contained in:
Manfred Urban 2015-06-01 15:54:31 +02:00 committed by Markus Unterwaditzer
parent 1c3a053ce5
commit 38f2e526bf

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)