From 1369f9285b5c90e2678ac3f0a2d9d0988908ce53 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Wed, 22 Nov 2017 16:20:56 +0100 Subject: [PATCH] The .co file of downloaded submissions has to contain the (original) file_id of the respective files, not the "id". Otherwise, the merge of the files does not work and will result in duplicate files... --- app/controllers/submissions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index 8e7a8e39..73db8c25 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -390,7 +390,7 @@ class SubmissionsController < ApplicationController content += "#{request.base_url}/evaluate\n" @submission.files.each do |file| file_path = file.path.to_s == '' ? file.name_with_extension : File.join(file.path, file.name_with_extension) - content += "#{file_path}=#{file.id.to_s}\n" + content += "#{file_path}=#{file.file_id.to_s}\n" end File.open(path, "w+") do |f| f.write(content)