Skip to content

Commit

Permalink
Add limit to problem report (#1464)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlovell authored Dec 6, 2024
1 parent 35ba9b7 commit f50ee44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/problem_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def s3_presigned_url
end

def problem_children_csv
ChildObject.includes(:parent_object).where('height is NULL or height = 0 or width is NULL or width = 0').order("parent_objects.admin_set_id", :parent_object_oid, :oid).map do |co|
ChildObject.includes(:parent_object).where('height is NULL or height = 0 or width is NULL or width = 0').order("parent_objects.admin_set_id", :parent_object_oid, :oid).limit(1000).map do |co|
[co.parent_object.admin_set.key, co.parent_object.oid, co.oid, co.updated_at]
end
end
Expand Down

0 comments on commit f50ee44

Please sign in to comment.