def get(self): db = IndexDb() domain_total = db.fetch_domain_num() domain_detected = db.fetch_whois_sum() total = [domain_total,domain_detected,domain_total-domain_detected] self.render(PATH + 'detect_forcast.html', total = total )
def get(self): index_db = IndexDb() domain_overall = index_db.fetch_tld_overall(top=20) domain_num, tld_num, msvr_sum, ssvr_sum, whois_sum, domains = domain_overall self.render('index.html', domain_num=domain_num, tld_num=tld_num, msvr_sum=msvr_sum, ssvr_sum=ssvr_sum, whois_sum=whois_sum, domains=json.dumps(domains, default=self._date_handler))
def get(self): index_db = IndexDb() domain_overall = index_db.fetch_tld_overall(top=20) domain_num, tld_num, msvr_sum, ssvr_sum, whois_sum,domains = domain_overall self.render( 'index.html', domain_num=domain_num, tld_num=tld_num, msvr_sum=msvr_sum, ssvr_sum=ssvr_sum, whois_sum=whois_sum, domains = json.dumps(domains,default=self._date_handler) )
def get(self): db = IndexDb() domain_total = db.fetch_domain_num() domain_detected = db.fetch_whois_sum() total = [domain_total, domain_detected, domain_total - domain_detected] self.render(PATH + 'detect_forcast.html', total=total)