mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-26 20:08:51 +01:00
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:
parent
0f823a8a2e
commit
2afcaa022e
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue