mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 08:36:25 +00:00
fix: respect zero LinkedIn result limits (#76)
This commit is contained in:
@@ -55,7 +55,7 @@ export async function runSearch(opts: SearchOpts): Promise<number> {
|
||||
try {
|
||||
const html = await htmlFetch(buildUrl(opts))
|
||||
let cards = parseJobCards(html)
|
||||
if (opts.limit && opts.limit > 0) cards = cards.slice(0, opts.limit)
|
||||
if (opts.limit !== undefined && opts.limit >= 0) cards = cards.slice(0, opts.limit)
|
||||
|
||||
if (opts.format === "table") {
|
||||
process.stdout.write(renderTable(cards) + "\n")
|
||||
|
||||
Reference in New Issue
Block a user