diff --git a/app/models/report.rb b/app/models/report.rb index 80b611d63e..c6821d4f16 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -20,6 +20,7 @@ class << self COLUMN_SELECTOR_COLUMN_SIZE = 3 # Helps display report columns in neatly lined up columns. ROWS_PER_PAGE = 100 + ROWS_PER_PAGE_CSV = 10_000 REPORT_FIELDS = [ { @@ -277,7 +278,7 @@ def report_data # @return [Enumerator] data in CSV format def to_csv @params[:page] = 1 - @params[:per_page] = ROWS_PER_PAGE + @params[:per_page] = ROWS_PER_PAGE_CSV Enumerator.new do |yielder| yielder << CSV.generate_line(@fields.map { |field| field.fetch(:label) }, force_quotes: true) # header row until @response.documents.empty?