def create_rank(self,req): #analytics apiから生成 analytics=AnalyticsGet() analytics.create_session() self.get_tag_list(analytics) thread_list=self.get_thread_list(analytics) if os.environ["SERVER_SOFTWARE"].find("Development")!=-1: thread_list=db.Query(MesThread,keys_only=True).order("-create_date").fetch(limit=100) self._create_ranking_core(thread_list) if(len(thread_list)>=1): #Trear GA error self.put() gc.collect()
def get_analytics(self, mode, bbs_id, start_date, end_date): analytics = AnalyticsGet() analytics.create_session() return analytics.get(mode, bbs_id, start_date, end_date)