feat: first_run_days config — defaults to 90 days on first run, then posted_within_days after

This commit is contained in:
2026-03-05 23:38:21 +00:00
parent 931112e7cf
commit cb7a401aff
7 changed files with 85 additions and 24 deletions

View File

@@ -21,7 +21,7 @@ export async function searchWellfound(page, search) {
await page.evaluate(() => window.scrollBy(0, 3000));
await page.waitForTimeout(2000);
const found = await page.evaluate((track, excludes) => {
const found = await page.evaluate(({ track, excludes }) => {
const seen = new Set();
const results = [];
@@ -57,7 +57,7 @@ export async function searchWellfound(page, search) {
});
return results.slice(0, 30);
}, search.track, search.exclude_keywords || []);
}, { track: search.track, excludes: search.exclude_keywords || [] });
jobs.push(...found);
}