Subversion Repositories navi

Compare Revisions

Ignore whitespace Rev 141 → Rev 142

/tsimapiak/dbconnector.py
34,12 → 34,12
db.close()
return ret
 
def translate(id,language):
def translate(wid,language):
db = tornado.database.Connection("127.0.0.1", "navi", user="navi", password="navi")
for row in db.query("""
SELECT *
FROM `localizedWords`
WHERE id = ? AND languageCode = ?""",id,language):
WHERE (id = ?) AND (languageCode = ?)""",int(wid),language):
ret = row["localized"]
break
db.close()