Prevent reference_implementation to be copied to Runner
This commit is contained in:
@ -205,6 +205,7 @@ class Submission < ApplicationRecord
|
|||||||
begin
|
begin
|
||||||
runner = Runner.for(user, exercise.execution_environment)
|
runner = Runner.for(user, exercise.execution_environment)
|
||||||
files = collect_files
|
files = collect_files
|
||||||
|
files.reject!(&:reference_implementation?)
|
||||||
files.reject!(&:teacher_defined_assessment?) if cause == 'run'
|
files.reject!(&:teacher_defined_assessment?) if cause == 'run'
|
||||||
Rails.logger.debug { "#{Time.zone.now.getutc.inspect}: Copying files to Runner #{runner.id} for #{user_type} #{user_id} and Submission #{id}." }
|
Rails.logger.debug { "#{Time.zone.now.getutc.inspect}: Copying files to Runner #{runner.id} for #{user_type} #{user_id} and Submission #{id}." }
|
||||||
runner.copy_files(files)
|
runner.copy_files(files)
|
||||||
|
Reference in New Issue
Block a user