Skip to content

Commit

Permalink
DEV-1538 Removing 50 studnet return limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ogg committed Jun 11, 2014
1 parent ffa230f commit 96bb0e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/submissions_api_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ def for_students
student_ids &= visible_user_ids(:include_priors => true)
return render(:json => []) if student_ids.blank?

max_students = Setting.get_cached('api_max_per_page', '50').to_i
student_ids = student_ids.first(max_students)
# DEV-1538
# Removing limit on return.. we have more than 50 Studnets per class
# max_students = Setting.get_cached('api_max_per_page', '50').to_i
# student_ids = student_ids.first(max_students)

includes = Array(params[:include])

Expand Down

0 comments on commit 96bb0e0

Please sign in to comment.