def get(self): probet = Probet() template = jinja_environment.get_template('bets.html') template_values = {'odds':probet.getWagers(risk=5), 'teams':probet.getTeams()} self.response.out.write(template.render(template_values))
def get(self): probet = Probet() bets = probet.getWagers(top=3) if len(bets) > 2: mail.send_mail(sender="Probet <*****@*****.**>", to="Steve <*****@*****.**>", subject="Today's Picks", body=""" Good morning Steve! We've got some picks for you today! %s %s %s Good luck! """ % tuple([self.format(x) for x in bets])) self.response.out.write('done')
def get(self): probet = Probet() probet.update_results() self.response.out.write('done')
def get(self): probet = Probet() bets = probet.getWagers(risk=5)
def get(self): probet = Probet() template = jinja_environment.get_template('index.html') template_values = {'odds': probet.getWagers(None,0)} self.response.out.write(template.render(template_values))