From 2a4fd52d435204dbf9e99193cccbf0384cd73b8b Mon Sep 17 00:00:00 2001 From: Claw Date: Fri, 6 Mar 2026 02:26:14 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20clear=20progress=20on=20clean=20finish?= =?UTF-8?q?=20=E2=80=94=20keywords=20only=20reused=20when=20previous=20run?= =?UTF-8?q?=20was=20incomplete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- job_searcher.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/job_searcher.mjs b/job_searcher.mjs index b957790..6ee08e3 100644 --- a/job_searcher.mjs +++ b/job_searcher.mjs @@ -22,7 +22,7 @@ import { verifyLogin as wfLogin, searchWellfound } from './lib/wellfound.mjs'; import { sendTelegram, formatSearchSummary } from './lib/notify.mjs'; import { DEFAULT_FIRST_RUN_DAYS } from './lib/constants.mjs'; import { generateKeywords } from './lib/keywords.mjs'; -import { initProgress, isCompleted, markComplete, getKeywordStart, markKeywordComplete, saveKeywords, getSavedKeywords } from './lib/search_progress.mjs'; +import { initProgress, isCompleted, markComplete, getKeywordStart, markKeywordComplete, saveKeywords, getSavedKeywords, clearProgress } from './lib/search_progress.mjs'; import { ensureLoggedIn } from './lib/session.mjs'; async function main() { @@ -195,6 +195,7 @@ async function main() { if (totalAdded > 0) await sendTelegram(settings, summary); writeLastRun(true); + clearProgress(); // run finished cleanly — next run starts fresh with new keywords console.log('\nāœ… Search complete'); return { added: totalAdded, seen: totalSeen };