beer_in_the_evening 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -114,7 +114,14 @@ module BeerInTheEvening
|
|
|
114
114
|
rows.map! { |row|
|
|
115
115
|
Pub.new row
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
|
|
118
|
+
if minimum_rating
|
|
119
|
+
# Some searches don't obey the minimum_rating parameter eg when
|
|
120
|
+
# searching by postcode.
|
|
121
|
+
rows.delete_if { |p| p.rating < minimum_rating }
|
|
122
|
+
logger.debug "Whittled results down to #{rows.size} after strict minimum rating check"
|
|
123
|
+
end
|
|
124
|
+
logger.debug "Returning #{rows.size} results as pubs"
|
|
118
125
|
rows
|
|
119
126
|
end
|
|
120
127
|
private :results_on_page
|