Skip to content

Commit

Permalink
codeclimate issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vasconsaurus committed Dec 10, 2024
1 parent eb072c1 commit dba3e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/smooch_nlu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def self.alegre_matches_from_message(message, language, context, alegre_result_k
response = Bot::Alegre.query_sync_with_params(params, "text")["result"].collect{|result|
result["context"] = Bot::Alegre.isolate_relevant_context(team_id, result)
}

# One approach would be to take the option that has the most matches
# Unfortunately this approach is influenced by the number of keywords per option
# So, we are not using this approach right now
Expand Down
2 changes: 1 addition & 1 deletion app/models/concerns/alegre_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def parse_similarity_results(project_media, field, results, relationship_type)
else
raise ActiveRecord::RecordInvalid.new, "Related items must exist in the same workspace"
end
}.reject{ |k,_| k == project_media.id }]
}.reject{ |k,_| k == project_media.id }]
end

def safe_get_async(project_media, field, params={})
Expand Down

0 comments on commit dba3e81

Please sign in to comment.