From 7800939d8d9bfcaa1770fb03a05e6a9624b3de53 Mon Sep 17 00:00:00 2001 From: SoClose <33631880+SoClosee@users.noreply.github.com> Date: Thu, 5 Mar 2026 03:07:06 +0100 Subject: [PATCH] fix: Add max_pages check to collect_all_job_links to prevent infinite loop --- freework_scraper/scraper/search.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/freework_scraper/scraper/search.py b/freework_scraper/scraper/search.py index db6eb15..f630341 100644 --- a/freework_scraper/scraper/search.py +++ b/freework_scraper/scraper/search.py @@ -1,5 +1,3 @@ -"""Search page navigation and pagination for FreeWork.""" - from __future__ import annotations import logging @@ -138,4 +136,4 @@ def collect_all_job_links( on_page_done(page_num, total_pages, 0) logger.info("Total job links collected: %d across %d pages.", len(all_links), total_pages) - return all_links + return all_links \ No newline at end of file