def get(self): tv = {'login': str(datetime.datetime.now() + datetime.timedelta(hours=8))[:-7], 'twsew': twsew().weight, } self.response.out.write(template.render('./template/h_weight.htm',{'tv':tv}))
def get(self): tv = {'login': str(datetime.datetime.now() + datetime.timedelta(hours=8))[:-7], 'test': twsew().weight, 'twse': twsk(self.request.get('q')).sread } self.response.out.write(template.render('./template/h_index.htm',{'tv':tv}))