Skip to content

Commit

Permalink
Update images.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Dec 26, 2024
1 parent 5204a06 commit 2e3ca7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/classes/query/initializers/images.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def image_set(obs)
# Tell outer query to skip observations with no images!
def skip_observations_with_no_images
self.tweak_outer_query = lambda do |outer|
extend_where(outer.params) << "observations.thumb_image_id IS NOT NULL"
extend_where(outer.params) <<
"observations.thumb_image_id IS NOT NULL"
end
end
end
Expand Down

0 comments on commit 2e3ca7c

Please sign in to comment.