update
This commit is contained in:
parent
e02ba29923
commit
6fd57b8f89
6
index.js
6
index.js
|
|
@ -117,6 +117,10 @@ async function captureComplexArticles(complex) {
|
||||||
return desc.includes(keyword);
|
return desc.includes(keyword);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const mainDescriptionHasKeyword = FILTERS.keywords.some((keyword) =>
|
||||||
|
description.includes(keyword)
|
||||||
|
);
|
||||||
console.log(
|
console.log(
|
||||||
dealPrice,
|
dealPrice,
|
||||||
description,
|
description,
|
||||||
|
|
@ -129,7 +133,7 @@ async function captureComplexArticles(complex) {
|
||||||
return (
|
return (
|
||||||
dealPrice > FILTERS.minPrice &&
|
dealPrice > FILTERS.minPrice &&
|
||||||
dealPrice <= FILTERS.maxPrice &&
|
dealPrice <= FILTERS.maxPrice &&
|
||||||
(description.includes(FILTERS.keywords) || descriptionIsPass) &&
|
(mainDescriptionHasKeyword || descriptionIsPass) &&
|
||||||
supplySpace >= FILTERS.minSupplySpace &&
|
supplySpace >= FILTERS.minSupplySpace &&
|
||||||
useTarget
|
useTarget
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue