Skip to content

Commit 40228c4

Browse files
committed
Fix YSWS reviews
1 parent 91fdd6b commit 40228c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/admin/ysws_reviews_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def index
77
@filter = params[:filter] || "pending"
88
@sort_by = params[:sort_by] || "random"
99

10-
Project.ysws_review_eligible.left_joins(:devlogs).group("projects.id").select("projects.*, COUNT(DISTINCT devlogs.id) as devlogs_count, COALESCE(SUM(devlogs.duration_seconds), 0) as total_seconds_coded, (SELECT elo_after FROM vote_changes WHERE project_id = projects.id ORDER BY created_at DESC LIMIT 1) as elo_score")
10+
base = Project.ysws_review_eligible.left_joins(:devlogs).group("projects.id").select("projects.*, COUNT(DISTINCT devlogs.id) as devlogs_count, COALESCE(SUM(devlogs.duration_seconds), 0) as total_seconds_coded, (SELECT elo_after FROM vote_changes WHERE project_id = projects.id ORDER BY created_at DESC LIMIT 1) as elo_score")
1111
.preload(:user, :devlogs, :project_language, ship_certifications: :reviewer)
1212

1313
case @filter

0 commit comments

Comments
 (0)