mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-30 12:45:18 +01:00
Separate query from cloud
This will make testing easier
This commit is contained in:
parent
8f42b25e68
commit
a81f5b76f3
3 changed files with 46 additions and 38 deletions
|
|
@ -552,8 +552,11 @@ class StatsController < ApplicationController
|
|||
end
|
||||
|
||||
def get_stats_tags
|
||||
@tag_cloud = Stats::TagCloud.new(current_user)
|
||||
@tag_cloud_90days = Stats::TagCloud.new(current_user, @cut_off_3months)
|
||||
tags = Stats::TagCloudQuery.new(current_user).result
|
||||
@tag_cloud = Stats::TagCloud.new(tags)
|
||||
|
||||
tags_90days = Stats::TagCloudQuery.new(current_user, @cut_off_3months).result
|
||||
@tag_cloud_90days = Stats::TagCloud.new(tags_90days)
|
||||
end
|
||||
|
||||
def get_ids_from (actions, week_from, week_to, at_end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue