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

class Arch(object):
  def GET(self):
	arch_count = db.select('ENV', what='ARCH, COUNT(UUID) AS HOSTS', group='ARCH')
	arch_data = dict()
	for t in arch_count:
	  arch_data[t['ARCH']] = {'HOSTS':t['HOSTS']}
	return render.arch(arch_data)