aboutsummaryrefslogtreecommitdiff
blob: e6a63f5d00d036416c3187f560cca1765c5d770d (plain)
1
2
3
4
5
6
7
8
from config import render, db

class Index(object):
    def GET(self):
        hosts = db.select('HOSTS', what='COUNT(UUID) as COUNT')
        count = hosts[0]['COUNT']
        return render.index(count)