diff options
author | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2007-10-05 15:10:33 +0000 |
---|---|---|
committer | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2007-10-05 15:10:33 +0000 |
commit | 31e273a8169e74db7db41a6ae679d44f217fcc27 (patch) | |
tree | 78530ecf46a718fceee7fbd7f10f642c4729de44 /tko | |
parent | 98a373088a93588f6b82bf2de3a42d92ba56a8df (diff) |
Fix up error in status table read from the database
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@754 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko')
-rw-r--r-- | tko/db.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 @@ class db: 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] |