changed the query to calculate unique tags to prevent Rails from using SELECT DISTINCT construct. Hopefully this solves #612. Please test, because I don't use PostgeSQL.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@663 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2007-11-30 21:33:17 +00:00
parent 0f823a8a2e
commit 2afcaa022e

View file

@ -5,7 +5,7 @@ class StatsController < ApplicationController
def index
@page_title = 'TRACKS::Statistics'
@unique_tags = @tags.find(:all, {:group=>"tag_id"})
@unique_tags = @tags.count(:all, {:group=>"tag_id"})
@hidden_contexts = @contexts.find(:all, {:conditions => ["hide = ? ", true]})
@first_action = @actions.find(:first, :order => "created_at ASC")