nanterre: fix search by date only (fixes #22980)

This commit is contained in:
Benjamin Dauvergne 2018-04-17 12:01:06 +02:00 committed by Thomas NOEL
parent daa50d348a
commit f7a6af2abb
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class PersonSearch(object):
for identifier in identifiers:
self = self.search_identifier(identifier)
for birthdate in birthdates:
if email or identifier or names:
if emails or identifiers or names:
self = self.search_birthdate(birthdate, window_days=0)
else:
self = self.search_birthdate(birthdate)