From 3800e314f62915c9153181d327331f47644b7f93 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Wed, 1 Jan 2025 17:57:22 +0100 Subject: Update score export service. --- app/services/tartiflette_score_export_service.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3