FIX bug in query introduced by d3736e25.

Author name equlity to query is tested instead of query inclusion.
This commit is contained in:
Olivier Mangin 2014-05-28 15:10:51 +02:00
parent 4fd2e964b3
commit 47103058d6

View File

@ -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']])