From 5872fdcc64d4455cb87d7be7c9a1592157dc9fef Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Thu, 30 Apr 2020 01:50:29 -0700 Subject: [PATCH] Break after finding the right index --- amanuensis/lexicon/gameloop.py | 1 + 1 file changed, 1 insertion(+) diff --git a/amanuensis/lexicon/gameloop.py b/amanuensis/lexicon/gameloop.py index af91509..cbec9c9 100644 --- a/amanuensis/lexicon/gameloop.py +++ b/amanuensis/lexicon/gameloop.py @@ -228,6 +228,7 @@ def sort_by_index_spec(articles, index_specs, key=None): for index in index_eval_order: if index_match(index, key(article)): indexed[index.pattern].append(article) + break return indexed