FIX bug in query introduced by d3736e25.

Author name equlity to query is tested instead of query inclusion.
main
Olivier Mangin 11 years ago
parent 4fd2e964b3
commit 47103058d6

@ -69,7 +69,7 @@ def _check_author_match(paper, query, case_sensitive=False):
"""Only checks within last names."""
if not 'author' in paper.bibentry:
return False
return any([query == _lower(bibstruct.author_last(p), lower=(not case_sensitive))
return any([query in _lower(bibstruct.author_last(p), lower=(not case_sensitive))
for p in paper.bibentry['author']])

Loading…
Cancel
Save