From 47103058d658a0aa168aa3603ee339fedc078fee Mon Sep 17 00:00:00 2001 From: Olivier Mangin Date: Wed, 28 May 2014 15:10:51 +0200 Subject: [PATCH] FIX bug in query introduced by d3736e25. Author name equlity to query is tested instead of query inclusion. --- pubs/commands/list_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubs/commands/list_cmd.py b/pubs/commands/list_cmd.py index 39d6219..04e51ee 100644 --- a/pubs/commands/list_cmd.py +++ b/pubs/commands/list_cmd.py @@ -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']])