remove weekly logins report from activity controller

This commit is contained in:
robcolbert 2019-07-03 15:49:58 -04:00
parent 2f918b6101
commit c93755cff2

View File

@ -23,7 +23,8 @@ class Api::V1::Instances::ActivityController < Api::BaseController
weeks << { weeks << {
week: week.to_time.to_i.to_s, week: week.to_time.to_i.to_s,
statuses: Redis.current.get("activity:statuses:local:#{week_id}") || '0', statuses: Redis.current.get("activity:statuses:local:#{week_id}") || '0',
logins: Redis.current.pfcount("activity:logins:#{week_id}").to_s, #(Rjc) 2019-07-02: Make this an instance option in Admin panel
# logins: 0, # Redis.current.pfcount("activity:logins:#{week_id}").to_s,
registrations: Redis.current.get("activity:accounts:local:#{week_id}") || '0', registrations: Redis.current.get("activity:accounts:local:#{week_id}") || '0',
} }
end end