mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 16:20:12 +01:00
fix small error in last commit
This commit is contained in:
parent
974381c3b4
commit
cebaf05a7f
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ class StatsController < ApplicationController
|
|||
@page_title = 'TRACKS::Statistics'
|
||||
|
||||
@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
|
||||
@first_action = @actions.find(:first, :order => "created_at ASC")
|
||||
|
||||
|
|
@ -662,7 +662,7 @@ class StatsController < ApplicationController
|
|||
"FROM tags, taggings, todos "+
|
||||
"WHERE todos.user_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
|
||||
|
||||
def init
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue