def query(self, user): "Query Page" a = ptime() rem = request.remote_addr if rem == None: rem = "?" logger.info(rem + " Q:user") updateuser(user) f = gaindata(user) f["ptime"] = str(a.gap()) return f
def index(self): """Main page.""" a = ptime() return dict(ptime=a.gap())