Exemple #1
0
    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))
Exemple #2
0
    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')
Exemple #3
0
 def get(self):
     probet = Probet()
     probet.update_results()
     self.response.out.write('done')
Exemple #4
0
 def get(self):
     probet = Probet()
     bets = probet.getWagers(risk=5)
Exemple #5
0
 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))