Skip to content

Commit fefb056

Browse files
kkoehnMrSerth
andcommitted
Update app/services/proforma_service/convert_exercise_to_task.rb
Co-authored-by: Sebastian Serth <[email protected]>
1 parent 219d9d0 commit fefb056

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/services/proforma_service/convert_exercise_to_task.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ def uuid
7777
end
7878

7979
def model_solutions
80-
model_solutions_files = @exercise.files.filter {|file| file.role == 'reference_implementation' }.group_by {|file| xml_id_from_file(file).first }
81-
model_solutions_files.map do |xml_id, files|
80+
@exercise.files.filter(&:reference_implementation?).group_by {|file| xml_id_from_file(file).first }.map do |xml_id, files|
8281
ProformaXML::ModelSolution.new(
8382
id: xml_id,
8483
files: files.map {|file| model_solution_file(file) }

0 commit comments

Comments
 (0)