Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id AEFB99FBE8B for ; Wed, 24 Oct 2007 03:52:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 14577-09 for ; Wed, 24 Oct 2007 03:52:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from cronos.madness.at (madness.at [217.196.146.217]) by postgresql.org (Postfix) with ESMTP id 207699FB2E7 for ; Wed, 24 Oct 2007 03:52:11 -0300 (ADT) Received: from mastermind.kaltenbrunner.cc ([83.215.233.60]) by cronos.madness.at with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Ika61-00028I-Ji; Wed, 24 Oct 2007 08:52:09 +0200 Message-ID: <471EEB94.6060705@kaltenbrunner.cc> Date: Wed, 24 Oct 2007 08:52:04 +0200 From: Stefan Kaltenbrunner User-Agent: Icedove 1.5.0.12 (X11/20070607) MIME-Version: 1.0 To: Robert Treat CC: pgsql-www@postgresql.org, Josh Berkus Subject: Re: Problem with survey code References: <200710231221.08591.josh@agliodbs.com> <471E5502.1050300@kaltenbrunner.cc> <200710231702.42453.xzilla@users.sourceforge.net> In-Reply-To: <200710231702.42453.xzilla@users.sourceforge.net> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/136 X-Sequence-Number: 12723 Robert Treat wrote: > On Tuesday 23 October 2007 16:09, Stefan Kaltenbrunner wrote: >> Josh Berkus wrote: >>> Team, >>> >>> Low priority issue: >>> >>> When one adds a new survey to wwwmaster, it gets added to the Survey >>> History whether it is activated or not. As a result, we now have a bunch >>> of 0 results surveys already in the history: >>> >>> http://www.postgresql.org/community/survey.49 >>> http://www.postgresql.org/community/survey.52 >>> >>> These will get results once we rotate them into the limelight, but it's a >>> little disconcerting right now. >> hmm - just commited a small change to exclude all the ones that have >> zero results in them - should go live on the next sidebuild. >> > > This means to activate a survey you have to vote in it, right? this means that a survey needs to have at least one vote to show up in the "Other surveys" listing. Afaiks there is no real "this survey is actived" flag/indication in the code - only "this is the survey that is running now" so looking at the number of votes is the only hint we can use for generating a list of "surveys that ran in the past". Stefan