diff options
author | Marius Peter <marius.peter@tutanota.com> | 2025-01-01 17:57:22 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2025-01-01 17:57:22 +0100 |
commit | 3800e314f62915c9153181d327331f47644b7f93 (patch) | |
tree | 256a5b23c42b311b5d94c7e6781171eb6b15b4e3 /app/services | |
parent | 2a5c72b2a78bf0a0bf780a1ea2960a3740d15685 (diff) |
Update score export service.
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/tartiflette_score_export_service.rb | 3 |
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 |