/webapp/main.py |
---|
37,8 → 37,11 |
def get(self): |
text = "" |
db = tornado.database.Connection("127.0.0.1", "navi", user="navi", password="navi") |
for thing in db.query("SELECT * FROM test"): |
text = "<br />".join((text, str(thing.id) + " - " + thing.asd)) |
for thing in db.query(""" |
SELECT Infixes, CHAR_LENGTH(navi) AS NL |
FROM `metaWords` |
ORDER BY NL DESC"""): |
text = "<br />".join((text, thing.infixes)) |
self.write(text) |
application = tornado.web.Application([ |