Fix up error in status table read from the database

Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@754 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/db.py b/tko/db.py
index 4a35482..acc909d 100644
--- a/tko/db.py
+++ b/tko/db.py
@@ -1,4 +1,4 @@
-import MySQLdb, re, os, sys
+import MySQLdb, re, os, sys, types
 
 class db:
 	def __init__(self, debug = False):
@@ -38,7 +38,7 @@
 		self.status_word = {}
 		status_rows = self.select('status_idx, word', 'status', None)
 		for s in status_rows:
-			self.status_idx[s[0]] = s[0]
+			self.status_idx[s[1]] = s[0]
 			self.status_word[s[0]] = s[1]