示例#1
0
 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
                 )
示例#2
0
    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))
示例#3
0
    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)
        )
示例#4
0
 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)