Esempio n. 1
0
 def fetch_cached_report(self):
     report = CaseActivityReportCache.get_by_domain(self.domain).first()
     recreate = self.request.GET.get("recreate")
     if not report or recreate == "yes":
         logging.info("Building new Case Activity report for project %s" % self.domain)
         report = CaseActivityReportCache.build_report(self.domain_object)
     return report
Esempio n. 2
0
def build_case_activity_report():
    logging.info("Building Case Activity Reports.")
    all_domains = Domain.get_all()
    for domain in all_domains:
        CaseActivityReportCache.build_report(domain)