Skip to content

Commit

Permalink
CV2-5608: add more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
melsawy committed Nov 4, 2024
1 parent 93d9143 commit cb3cc67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/check_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def get_pg_results_for_media
custom_conditions[k] = [@options[v]].flatten if @options.has_key?(v)
end
core_conditions.merge!({ archived: @options['archived'] })
# Use sources_count condition for PG query to get either parent or child based on show_similar option
core_conditions.merge!({ sources_count: 0 }) unless @options['show_similar']
range_filter(:pg, custom_conditions)
relation = ProjectMedia
Expand Down

0 comments on commit cb3cc67

Please sign in to comment.