fix(stats): exported file should be csv

fix #7040
This commit is contained in:
Paul Chavard 2022-11-24 14:32:28 +01:00 committed by Paul Chavard
parent 7a1f823e4a
commit 6f6f4bc60d

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