handle users without created at date
This commit is contained in:
parent
416b577eca
commit
30af2e7188
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