From 5d58ca3009493861192058df026298af60530926 Mon Sep 17 00:00:00 2001 From: Paul Goins Date: Tue, 7 Dec 2010 23:35:33 +0900 Subject: [PATCH] Finished up changes to the KANJIDIC2 code. --- jblite/kd2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jblite/kd2.py b/jblite/kd2.py index 3a7af44..85cc6d9 100644 --- a/jblite/kd2.py +++ b/jblite/kd2.py @@ -229,13 +229,13 @@ class Database(BaseDatabase): char_ids = [] for lst in (entries_r, entries_m, entries_n): for row in lst: - if row[0] not in results: + if row[0] not in char_ids: char_ids.append(row[0]) for char_id in entries_i: - if char_id not in results: + if char_id not in char_ids: char_ids.append(char_id) - char_ids = list(sorted(results)) + char_ids = list(sorted(char_ids)) results = [self.lookup(char_id) for char_id in char_ids] return results -- 2.11.4.GIT