Merge pull request #8131 from tchak/fix-export-stats-csv

fix(stats): exported file should be csv
This commit is contained in:
LeSim 2022-11-24 15:49:22 +01:00 committed by GitHub
commit 39714cfb85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ class StatsController < ApplicationController
end
respond_to do |format|
format.csv { send_data(SpreadsheetArchitect.to_xlsx(headers: headers, data: data), filename: "statistiques.csv") }
format.csv { send_data(SpreadsheetArchitect.to_csv(headers: headers, data: data), filename: "statistiques.csv") }
end
end