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 Nov 19, 2024
1 parent 6b8c04b commit e6a3f23
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 e6a3f23

Please sign in to comment.