Get contributed projects for last year only
This commit is contained in:
parent
558dd81197
commit
716544085c
|
@ -610,6 +610,7 @@ class User < ActiveRecord::Base
|
||||||
|
|
||||||
def contributed_projects_ids
|
def contributed_projects_ids
|
||||||
Event.where(author_id: self).
|
Event.where(author_id: self).
|
||||||
|
where("created_at > ?", Time.now - 1.year).
|
||||||
code_push.
|
code_push.
|
||||||
reorder(project_id: :desc).
|
reorder(project_id: :desc).
|
||||||
select('DISTINCT(project_id)').
|
select('DISTINCT(project_id)').
|
||||||
|
|
Loading…
Reference in New Issue