Feed all cached data on the page

This commit is contained in:
Alexey Lavrenuke 2014-09-11 23:51:50 +04:00
parent 2994aa16bc
commit 4362f6c0f0

View File

@ -31,8 +31,8 @@ class Client(SocketConnection):
class MainHandler(tornado.web.RequestHandler):
cacher = None
def get(self):
if cacher is not None:
cached_data = cacher.get_all_data()
if MainHandler.cacher is not None:
cached_data = MainHandler.cacher.get_all_data()
else:
cached_data = {}
self.render("index.jade", cached_data=cached_data)