Example #1
0
    def get(self):
        today = str(datetime.date.today()+datetime.timedelta(days=-1))
        tdgrkeyname = "GoogleReader%s" % (today)
        tdgbkeyname = "GoogleBuzz%s" % (today)        
        today_gr_stat = UpdateStat.get_or_insert(tdgrkeyname)
        today_gb_stat = UpdateStat.get_or_insert(tdgbkeyname) 
        today_all = today_gr_stat.counter+today_gb_stat.counter
        sender_address = "G2T <*****@*****.**>"
        subject = "[%s]G2T Daily UpdateStat Summary" % today
        body = """

Daily Google Reader Update : %d
Daily Google Buzz Update   : %d
Daily All Update   : %d


""" % (today_gr_stat.counter,today_gb_stat.counter,today_all)
        mail.send_mail_to_admins(sender_address, subject, body)
Example #2
0
    def get(self):
        today = str(datetime.date.today() + datetime.timedelta(days=-1))
        tdgrkeyname = "GoogleReader%s" % (today)
        tdgbkeyname = "GoogleBuzz%s" % (today)
        today_gr_stat = UpdateStat.get_or_insert(tdgrkeyname)
        today_gb_stat = UpdateStat.get_or_insert(tdgbkeyname)
        today_all = today_gr_stat.counter + today_gb_stat.counter
        sender_address = "G2T <*****@*****.**>"
        subject = "[%s]G2T Daily UpdateStat Summary" % today
        body = """

Daily Google Reader Update : %d
Daily Google Buzz Update   : %d
Daily All Update   : %d


""" % (today_gr_stat.counter, today_gb_stat.counter, today_all)
        mail.send_mail_to_admins(sender_address, subject, body)
Example #3
0
 def get(self):
     graph_url = UpdateStat.recent_stats_graph_url()
     logging.info(graph_url)
     self.response.out.write('<img src="%s"/>' % graph_url)
Example #4
0
 def get(self):
     graph_url = UpdateStat.recent_stats_graph_url()
     logging.info(graph_url)
     self.response.out.write('<img src="%s"/>' % graph_url)