From 4f89307607896021b6ae1976d846df23ae118e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 9 Dec 2011 16:59:54 +0100 Subject: [PATCH] do not append twice the same person --- tabellio/searchform/form.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tabellio/searchform/form.py b/tabellio/searchform/form.py index ebff639..acedf81 100644 --- a/tabellio/searchform/form.py +++ b/tabellio/searchform/form.py @@ -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())