summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2025-01-01 17:57:22 +0100
committerMarius Peter <marius.peter@tutanota.com>2025-01-01 17:57:22 +0100
commit3800e314f62915c9153181d327331f47644b7f93 (patch)
tree256a5b23c42b311b5d94c7e6781171eb6b15b4e3 /app
parent2a5c72b2a78bf0a0bf780a1ea2960a3740d15685 (diff)
Update score export service.
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