mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 02:30:12 +01:00
Collapse duplication in tag cloud model
This commit is contained in:
parent
edc793e703
commit
447178bd7d
2 changed files with 27 additions and 39 deletions
|
|
@ -552,15 +552,18 @@ class StatsController < ApplicationController
|
|||
end
|
||||
|
||||
def get_stats_tags
|
||||
cloud = Stats::TagCloud.new(current_user, @cut_off_3months)
|
||||
cloud = Stats::TagCloud.new(current_user)
|
||||
cloud.compute
|
||||
|
||||
@tags_for_cloud = cloud.tags
|
||||
@tags_min = cloud.min
|
||||
@tags_divisor = cloud.divisor
|
||||
@tags_for_cloud_90days = cloud.tags_90days
|
||||
@tags_min_90days = cloud.min_90days
|
||||
@tags_divisor_90days = cloud.divisor_90days
|
||||
|
||||
cloud = Stats::TagCloud.new(current_user, @cut_off_3months)
|
||||
cloud.compute
|
||||
@tags_for_cloud_90days = cloud.tags
|
||||
@tags_min_90days = cloud.min
|
||||
@tags_divisor_90days = cloud.divisor
|
||||
end
|
||||
|
||||
def get_ids_from (actions, week_from, week_to, at_end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue