9,7 → 9,7 |
|
import os |
|
from navi.parsenum import parse |
from tsimapiak.parsenum import parse |
|
class Index(tornado.web.RequestHandler): |
def get(self): |
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([ |