Merge pull request #3028 from diasp/fix-weekly-user-stats
Admin: handle users without created at date [ci skip]
This commit is contained in:
commit
47dbced6d7
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ class AdminsController < ApplicationController
|
|||
end
|
||||
|
||||
def weekly_user_stats
|
||||
@created_users = User.where("username IS NOT NULL")
|
||||
@created_users = User.where("username IS NOT NULL and created_at IS NOT NULL")
|
||||
@created_users_by_week = Hash.new{ |h,k| h[k] = [] }
|
||||
@created_users.each do |u|
|
||||
unless u.nil?
|
||||
|
|
|
|||
Loading…
Reference in a new issue