Merge pull request #8131 from tchak/fix-export-stats-csv
fix(stats): exported file should be csv
This commit is contained in:
commit
39714cfb85
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue