Skip to content

Commit

Permalink
exposed match substring as separate dict item
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Apr 5, 2018
1 parent 9adc9e3 commit 2c45d59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pyff/mdrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ def _match(qq, elt):
if m is not None:
d = entity_simple_summary(e)
ll = d['title'].lower()
if m != ll and not query[0] in ll:
d['title'] = "%s - %s" % (d['title'], m)
d['matched'] = m
else:
d = entity_simple_summary(e)

Expand Down

0 comments on commit 2c45d59

Please sign in to comment.