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);
|
||||
});
|
||||
});
|
||||
|
||||
const mainDescriptionHasKeyword = FILTERS.keywords.some((keyword) =>
|
||||
description.includes(keyword)
|
||||
);
|
||||
console.log(
|
||||
dealPrice,
|
||||
description,
|
||||
|
|
@ -129,7 +133,7 @@ async function captureComplexArticles(complex) {
|
|||
return (
|
||||
dealPrice > FILTERS.minPrice &&
|
||||
dealPrice <= FILTERS.maxPrice &&
|
||||
(description.includes(FILTERS.keywords) || descriptionIsPass) &&
|
||||
(mainDescriptionHasKeyword || descriptionIsPass) &&
|
||||
supplySpace >= FILTERS.minSupplySpace &&
|
||||
useTarget
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue