aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'server/profile.py')
-rw-r--r--server/profile.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/profile.py b/server/profile.py
index 211963c..c0a0fc5 100644
--- a/server/profile.py
+++ b/server/profile.py
@@ -2,9 +2,9 @@
from config import render, db
class Profile(object):
- def GET(self):
- profile_count = db.select('ENV', what='PROFILE, COUNT(UUID) AS HOSTS', group='PROFILE')
- profile_data = dict()
- for t in profile_count:
- profile_data[t['PROFILE']] = {'HOSTS':t['HOSTS']}
- return render.profile(profile_data)
+ def GET(self):
+ profile_count = db.select('ENV', what='PROFILE, COUNT(UUID) AS HOSTS', group='PROFILE')
+ profile_data = dict()
+ for t in profile_count:
+ profile_data[t['PROFILE']] = {'HOSTS':t['HOSTS']}
+ return render.profile(profile_data)