aboutsummaryrefslogtreecommitdiff
blob: e5866a2ccbbb5cbc068d646e3687ec8352bbd9bc (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)