summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/services/tartiflette_score_export_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/tartiflette_score_export_service.rb b/app/services/tartiflette_score_export_service.rb
index 26334a0..7e6ba41 100644
--- a/app/services/tartiflette_score_export_service.rb
+++ b/app/services/tartiflette_score_export_service.rb
@@ -3,13 +3,14 @@ require "csv"
class TartifletteScoreExportService
def self.generate_csv
CSV.generate(headers: true) do |csv|
- csv << [ "Identifiant", "Critère", "Score", "Création" ]
+ csv << [ "Identifiant", "Critère", "Score", "Session", "Création" ]
Tartiflette.all.each do |tartiflette|
tartiflette.scores.each do |score|
csv << [
tartiflette.scoring_id,
score.scoring_criterium.name,
score.value,
+ score.session_id,
score.created_at
]
end
Copyright 2019--2025 Marius PETER