winewoo_core 1.22.8 → 1.22.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/winewoo_core/services/elastic_search/parsers/wines_parser.rb +1 -1
- data/lib/winewoo_core/services/finders/wines/filters_wines_finder.rb +1 -1
- data/lib/winewoo_core/services/finders/wines/list_of_wines_finder.rb +1 -1
- data/lib/winewoo_core/services/finders/wines/producer_wines_finder.rb +1 -1
- data/lib/winewoo_core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e08d36bca5d7376a358c378c8e41a2fd3dc0276c
|
4
|
+
data.tar.gz: 0a0a3f24374acd61fac22389824b6d4e38c7ed50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2925c5e28deb6f25d5cbf33cb16e5f9132fec27a867bd2a68bbfda6019b37f78ae62e81c905e87e08f0bf7d4b25d3f1f0b3680f90f7f91070952adb3d2d9ef32
|
7
|
+
data.tar.gz: 7b067ec16d01e96d6823471efc82ceeeb11488f0dc3eabad07812e91cf70b06a4c759a7fe8b9546f4e62d237eb5579174e070fa2821812d13f51108f56dc544c
|
@@ -8,7 +8,7 @@ module WinewooCore::Services::ElasticSearch
|
|
8
8
|
# TODO UNOFFICIALS
|
9
9
|
# query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published
|
10
10
|
Rails.logger.info "WINEWOO IDS #{ids.to_json}"
|
11
|
-
query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new.published
|
11
|
+
query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published
|
12
12
|
query.find(ids)
|
13
13
|
end
|
14
14
|
end
|
@@ -10,7 +10,7 @@ module WinewooCore::Services::Finders::Wines
|
|
10
10
|
# query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published
|
11
11
|
query = @interpro ?
|
12
12
|
WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published :
|
13
|
-
WinewooCore::Repositories::Mongo::Queries::WineQuery.new.published
|
13
|
+
WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published
|
14
14
|
|
15
15
|
query = query.with_appelation(search[:appelations] || search[:aoc])
|
16
16
|
.with_colors(search[:colors])
|
@@ -4,7 +4,7 @@ module WinewooCore::Services::Finders::Wines
|
|
4
4
|
def find
|
5
5
|
wines = @filters.list_of_wines.map do |w|
|
6
6
|
wine = Wine.find(w[:id])
|
7
|
-
wine if wine.published?
|
7
|
+
wine if wine.published? && wine.official?
|
8
8
|
# TODO UNOFFICIALS
|
9
9
|
# wine if wine.published? && wine.official?
|
10
10
|
end
|
@@ -2,7 +2,7 @@ module WinewooCore::Services::Finders::Wines
|
|
2
2
|
class ProducerWinesFinder < WinesFinder
|
3
3
|
|
4
4
|
def find
|
5
|
-
query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new(@producer.wines)
|
5
|
+
query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new(@producer.wines).officials.published
|
6
6
|
query = query.from_interpro(@interpro.id) if @interpro
|
7
7
|
|
8
8
|
wines = query.page(@page || 1)
|
data/lib/winewoo_core/version.rb
CHANGED