Working on dashboard
This commit is contained in:
1 parent
d636248073
commit
f744bf266c
6 files changed
+431
-439
No files matched your search
@@ -50,16 +50,6 @@ class Admin::DashboardsController < OrbitBackendController
|
||||
render :json => @usw.uw_diskused_perc.to_s
|
||||
end
|
||||
|
||||
def get_month_traffic
|
||||
result = []
|
||||
(0..31).each do |i|
|
||||
the_day = i.day.ago
|
||||
visits = Impression.where( created_at: {'$gte' => the_day.beginning_of_day, '$lte' => the_day.end_of_day}).count
|
||||
result.push({the_day.strftime("%b-%d")=>visits})
|
||||
end
|
||||
render :js => result.to_json
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def get_module_app_count(*args)
|
||||
|
||||
Reference in new issue
Block a user