Gentoo Archives: gentoo-commits

From: Vikraman Choudhury <vikraman.choudhury@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoostats:master commit in: server/
Date: Mon, 01 Aug 2011 23:40:25
Message-Id: 6c76e75fd3b23be336bdf21c0f071d6574132a4c.vikraman@gentoo
1 commit: 6c76e75fd3b23be336bdf21c0f071d6574132a4c
2 Author: Vikraman Choudhury <vikraman.choudhury <AT> gmail <DOT> com>
3 AuthorDate: Mon Aug 1 23:40:00 2011 +0000
4 Commit: Vikraman Choudhury <vikraman.choudhury <AT> gmail <DOT> com>
5 CommitDate: Mon Aug 1 23:40:00 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoostats.git;a=commit;h=6c76e75f
7
8 fix profile json export
9
10 ---
11 server/profile.py | 2 +-
12 1 files changed, 1 insertions(+), 1 deletions(-)
13
14 diff --git a/server/profile.py b/server/profile.py
15 index 798c90d..4e4f65f 100644
16 --- a/server/profile.py
17 +++ b/server/profile.py
18 @@ -9,6 +9,6 @@ class Profile(object):
19 for t in profile_count:
20 profile_data[t['PROFILE']] = {'HOSTS':t['HOSTS']}
21 if helpers.is_json_request():
22 - helpers.serialize(profile_data)
23 + return helpers.serialize(profile_data)
24 else:
25 return render.profile(profile_data)