diff --git a/applications/data_fetcher/fetcher.py b/applications/data_fetcher/fetcher.py index adcc3fd..f5e3bf9 100644 --- a/applications/data_fetcher/fetcher.py +++ b/applications/data_fetcher/fetcher.py @@ -129,7 +129,7 @@ def fetch_news(self): logger.info(f"Total News: {response_json['meta']['found']}") while ( - page < 1 + page < MAX_API_QUERIES and page <= response_json["meta"]["found"] // response_json["meta"]["limit"] ):