fix small error in last commit

This commit is contained in:
Reinier Balt 2009-01-08 10:39:14 +01:00
parent 974381c3b4
commit cebaf05a7f

View file

@ -8,7 +8,7 @@ class StatsController < ApplicationController
@page_title = 'TRACKS::Statistics' @page_title = 'TRACKS::Statistics'
@tags_count = get_total_number_of_tags_of_user @tags_count = get_total_number_of_tags_of_user
@unique_tags_count = get_unique_tags_of_user.count @unique_tags_count = get_unique_tags_of_user.size
@hidden_contexts = @contexts.hidden @hidden_contexts = @contexts.hidden
@first_action = @actions.find(:first, :order => "created_at ASC") @first_action = @actions.find(:first, :order => "created_at ASC")
@ -662,7 +662,7 @@ class StatsController < ApplicationController
"FROM tags, taggings, todos "+ "FROM tags, taggings, todos "+
"WHERE todos.user_id=? "+ "WHERE todos.user_id=? "+
"AND tags.id = taggings.tag_id " + "AND tags.id = taggings.tag_id " +
"AND taggings.taggable_id = todos.id ", current_user.id]).count "AND taggings.taggable_id = todos.id ", current_user.id]).size
end end
def init def init