From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QWx7p-0005fT-CB for garchives@archives.gentoo.org; Wed, 15 Jun 2011 20:55:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A78DA1C0D1; Wed, 15 Jun 2011 20:55:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 79FCE1C0D1 for ; Wed, 15 Jun 2011 20:55:37 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F4551B4003 for ; Wed, 15 Jun 2011 20:55:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 73AAD8003C for ; Wed, 15 Jun 2011 20:55:35 +0000 (UTC) From: "Vikraman Choudhury" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vikraman Choudhury" Message-ID: Subject: [gentoo-commits] proj/gentoostats:master commit in: server/ X-VCS-Repository: proj/gentoostats X-VCS-Files: server/index.py X-VCS-Directories: server/ X-VCS-Committer: vikraman X-VCS-Committer-Name: Vikraman Choudhury X-VCS-Revision: d7869829c9591d6f3e8dddc05a97cdcdfc1975f2 Date: Wed, 15 Jun 2011 20:55:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 49ade69bc50c07b5fdf97996fc649846 commit: d7869829c9591d6f3e8dddc05a97cdcdfc1975f2 Author: Vikraman Choudhury gmail com> AuthorDate: Wed Jun 15 20:55:03 2011 +0000 Commit: Vikraman Choudhury gmail com> CommitDate: Wed Jun 15 20:55:03 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoostats.g= it;a=3Dcommit;h=3Dd7869829 fix index page --- server/index.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/index.py b/server/index.py index 038ae51..e5866a2 100644 --- a/server/index.py +++ b/server/index.py @@ -3,6 +3,6 @@ from config import render, db =20 class Index(object): def GET(self): - hosts =3D db.select('hosts', what=3D'count(uuid) as count') - count =3D hosts[0].count + hosts =3D db.select('HOSTS', what=3D'COUNT(UUID) as COUNT') + count =3D hosts[0]['COUNT'] return render.index(count)