do not append twice the same person

This commit is contained in:
Frédéric Péters 2011-12-09 16:59:54 +01:00
parent 7b2cd85b3c
commit 4f89307607
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ class ListAuthorsView(BrowserView):
for name_part in re.split(r'[-\s]', normalizer.normalize(object.Title()).lower()):
if name_part.startswith(q):
s.append(object)
break
def cmp_deputy(x, y):
return cmp(normalizer.normalize(x.Title()).lower(),
normalizer.normalize(y.Title()).lower())