예제 #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)