Subversion Repositories navi

Compare Revisions

Ignore whitespace Rev 3 → Rev 9

/webapp/main.py
9,7 → 9,7
 
import os
 
from navi.parsenum import parse
from tsimapiak.parsenum import parse
 
class Index(tornado.web.RequestHandler):
def get(self):
35,10 → 35,13
 
class TestDB(tornado.web.RequestHandler):
def get(self):
text = ""
text = u""
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 = u"<br />".join((text, unicode(thing["infixes"])))
self.write(text)
 
application = tornado.web.Application([
/webapp/templates/base.html
14,7 → 14,7
text-align: center;
font-size: 52px;
}
h1 {
h2 {
text-align: center;
font-size: 24px;
}