fix signatures

This commit is contained in:
dgtlmoon
2025-11-24 19:19:18 +01:00
parent 3fb1a96d7e
commit 39edb11bd7
4 changed files with 10 additions and 2 deletions
@@ -167,6 +167,7 @@ class fetcher(Fetcher):
request_method=None,
timeout=None,
url=None,
watch_uuid=None,
):
from playwright.async_api import async_playwright
@@ -376,6 +376,7 @@ class fetcher(Fetcher):
request_method=None,
timeout=None,
url=None,
watch_uuid=None,
):
#@todo make update_worker async which could run any of these content_fetchers within memory and time constraints
@@ -394,6 +395,7 @@ class fetcher(Fetcher):
request_method=request_method,
timeout=timeout,
url=url,
watch_uuid=watch_uuid,
), timeout=max_time
)
except asyncio.TimeoutError:
@@ -26,7 +26,9 @@ class fetcher(Fetcher):
ignore_status_codes=False,
current_include_filters=None,
is_binary=False,
empty_pages_are_a_change=False):
empty_pages_are_a_change=False,
watch_uuid=None,
):
"""Synchronous version of run - the original requests implementation"""
import chardet
@@ -129,6 +131,7 @@ class fetcher(Fetcher):
request_method=None,
timeout=None,
url=None,
watch_uuid=None,
):
"""Async wrapper that runs the synchronous requests code in a thread pool"""
@@ -146,7 +149,8 @@ class fetcher(Fetcher):
ignore_status_codes=ignore_status_codes,
current_include_filters=current_include_filters,
is_binary=is_binary,
empty_pages_are_a_change=empty_pages_are_a_change
empty_pages_are_a_change=empty_pages_are_a_change,
watch_uuid=watch_uuid,
)
)
@@ -71,6 +71,7 @@ class fetcher(Fetcher):
request_method=None,
timeout=None,
url=None,
watch_uuid=None,
):
import asyncio