mirror of
https://github.com/Growstuff/growstuff.git
synced 2025-12-23 17:47:49 -05:00
Relax the criteria as photos are uploaded less often
This commit is contained in:
@@ -53,7 +53,9 @@ module SearchHarvests
|
||||
owners = []
|
||||
1..limit.times do
|
||||
where = {
|
||||
photos_count: { gt: 0 },
|
||||
# Disabled for now so that more relevant harvests are
|
||||
# surfaced; even if we're falling back to crop photos.
|
||||
# photos_count: { gt: 0 },
|
||||
owner_id: { not: owners }
|
||||
}
|
||||
one_record = search('*',
|
||||
|
||||
@@ -66,7 +66,9 @@ module SearchPlantings
|
||||
owners = []
|
||||
1..limit.times do
|
||||
where = {
|
||||
photos_count: { gt: 0 },
|
||||
# Disabled for now so that more relevant plantings are
|
||||
# surfaced; even if we're falling back to crop photos.
|
||||
# photos_count: { gt: 0 },
|
||||
owner_id: { not: owners }
|
||||
}
|
||||
one_record = search('*',
|
||||
|
||||
Reference in New Issue
Block a user