mirror of
https://github.com/hempyhemp/hh-auto-reply.git
synced 2026-07-24 21:04:58 +00:00
🔧 fix(src/hh/scraper): увеличивает максимальное количество пропусков до 20 для улучшения обработки вакансий
All checks were successful
Deploy / deploy (push) Successful in 46s
All checks were successful
Deploy / deploy (push) Successful in 46s
This commit is contained in:
@@ -365,7 +365,7 @@ export async function applyToJobs(
|
|||||||
|
|
||||||
let appliedCount = 0
|
let appliedCount = 0
|
||||||
let consecutiveSkips = 0
|
let consecutiveSkips = 0
|
||||||
const MAX_CONSECUTIVE_SKIPS = 10
|
const MAX_CONSECUTIVE_SKIPS = 20
|
||||||
for (const vacancy of vacancies) {
|
for (const vacancy of vacancies) {
|
||||||
if (appliedCount >= maxApplies)
|
if (appliedCount >= maxApplies)
|
||||||
break
|
break
|
||||||
@@ -392,7 +392,6 @@ export async function applyToJobs(
|
|||||||
|
|
||||||
if (!description) {
|
if (!description) {
|
||||||
results.skipped.push(ref)
|
results.skipped.push(ref)
|
||||||
appliedCount++
|
|
||||||
consecutiveSkips++
|
consecutiveSkips++
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -400,7 +399,6 @@ export async function applyToJobs(
|
|||||||
const applyBtn = await page.$('[data-qa="vacancy-response-link-top"]')
|
const applyBtn = await page.$('[data-qa="vacancy-response-link-top"]')
|
||||||
if (!applyBtn) {
|
if (!applyBtn) {
|
||||||
results.skipped.push(vacancy)
|
results.skipped.push(vacancy)
|
||||||
appliedCount++
|
|
||||||
consecutiveSkips++
|
consecutiveSkips++
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -414,7 +412,6 @@ export async function applyToJobs(
|
|||||||
await relocationConfirm.click()
|
await relocationConfirm.click()
|
||||||
|
|
||||||
if (await skipIfQuestionnaire(page, vacancy, ref, chatId, status, results)) {
|
if (await skipIfQuestionnaire(page, vacancy, ref, chatId, status, results)) {
|
||||||
appliedCount++
|
|
||||||
consecutiveSkips++
|
consecutiveSkips++
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user