Skip to content

Commit

Permalink
Update app/services/proforma_service/convert_exercise_to_task.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Serth <[email protected]>
  • Loading branch information
kkoehn and MrSerth committed Oct 8, 2024
1 parent 722f209 commit 708bb5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/services/proforma_service/convert_exercise_to_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ def uuid
end

def model_solutions
model_solutions_files = @exercise.files.filter {|file| file.role == 'reference_implementation' }.group_by {|file| xml_id_from_file(file).first }
model_solutions_files.map do |xml_id, files|
@exercise.files.filter(&:reference_implementation?).group_by {|file| xml_id_from_file(file).first }.map do |xml_id, files|
ProformaXML::ModelSolution.new(
id: xml_id,
files: files.map {|file| model_solution_file(file) }
Expand Down

0 comments on commit 708bb5d

Please sign in to comment.