mirror of
https://github.com/davidjohnbarton/crawler-google-places.git
synced 2025-12-12 08:28:46 +00:00
Fixed occupancy sel
This commit is contained in:
parent
22bf467992
commit
84b4040a0b
|
|
@ -45,7 +45,7 @@ const extractPlaceDetail = async (page) => {
|
|||
});
|
||||
// Finds values from y axis
|
||||
$(this).find('.section-popular-times-bar').each(function (barIndex) {
|
||||
const occupancyMatch = $(this).attr('aria-label').match(/\d+\s+?%/);
|
||||
const occupancyMatch = $(this).attr('aria-label').match(/\d+(\s+)?%/);
|
||||
if (occupancyMatch && occupancyMatch.length) {
|
||||
const maybeHour = graphStartFromHour + barIndex;
|
||||
graphs[day].push({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user