Skip to content

Commit

Permalink
add Devin's update
Browse files Browse the repository at this point in the history
  • Loading branch information
vasconsaurus committed Dec 11, 2024
1 parent dba3e81 commit 7f4a1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/alegre_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def get_per_model_threshold(project_media, threshold)
end

def isolate_relevant_context(team_id, result)
(result["contexts"]||result["context"]).select{|x| ([x["team_id"]].flatten & [team_id].flatten).count > 0 && !x["temporary_media"]}.first
[(result["contexts"]||result["context"])].flatten.select{|x| ([x["team_id"]].flatten & [team_id].flatten).count > 0 && !x["temporary_media"]}.first
end

def get_target_field(project_media, field)
Expand Down

0 comments on commit 7f4a1a4

Please sign in to comment.