Skip already-visited unknown_external jobs in classifier

Only classify jobs without an apply_url — those with one have already
been visited and don't need re-classification.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 20:22:08 -08:00
parent 73c23d9bf1
commit b19cb68370

View File

@@ -204,7 +204,7 @@ async function main() {
platformsRun.push('LinkedIn'); platformsRun.push('LinkedIn');
// Classify unknown_external jobs using the existing LinkedIn browser session // Classify unknown_external jobs using the existing LinkedIn browser session
const unclassified = getJobsByStatus('new').filter(j => j.apply_type === 'unknown_external'); const unclassified = getJobsByStatus('new').filter(j => j.apply_type === 'unknown_external' && !j.apply_url);
if (unclassified.length > 0) { if (unclassified.length > 0) {
console.log(`\n🔍 Classifying ${unclassified.length} external jobs...`); console.log(`\n🔍 Classifying ${unclassified.length} external jobs...`);
const { classified, remaining } = await classifyExternalJobs(liBrowser.page, unclassified, (job, applyType, applyUrl) => { const { classified, remaining } = await classifyExternalJobs(liBrowser.page, unclassified, (job, applyType, applyUrl) => {