From b2ee67b413ff9d0bca6fb92ce089c7cdd459ceb0 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 13 Aug 2013 16:39:32 +0800 Subject: fixes gen_table_index --- scripts/chewingkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/chewingkey.py b/scripts/chewingkey.py index ced3d1b..c0db5d3 100644 --- a/scripts/chewingkey.py +++ b/scripts/chewingkey.py @@ -136,7 +136,7 @@ def gen_table_index(content_table): chewingkey = 'ChewingKey({0}, {1}, {2})'.format(initial, middle, final) index = -1 try: - index = [x[2] for x in content_table].index(chewingkey) + index = [x[4] for x in content_table].index(chewingkey) except ValueError: pass -- cgit