mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-25 21:11:11 +08:00
overwrite common params to affect nodes config
This commit is contained in:
parent
0c5d6e2c82
commit
4c8becc721
@ -103,7 +103,7 @@ class AbstractGraph(ABC):
|
||||
"cache_path": self.cache_path,
|
||||
}
|
||||
|
||||
self.set_common_params(common_params, overwrite=False)
|
||||
self.set_common_params(common_params, overwrite=True)
|
||||
|
||||
# set burr config
|
||||
self.burr_kwargs = config.get("burr_kwargs", None)
|
||||
|
||||
@ -43,7 +43,7 @@ class FetchNode(BaseNode):
|
||||
node_config: Optional[dict] = None,
|
||||
node_name: str = "Fetch",
|
||||
):
|
||||
super().__init__(node_name, "node", input, output, 1)
|
||||
super().__init__(node_name, "node", input, output, 1, node_config)
|
||||
|
||||
self.headless = (
|
||||
True if node_config is None else node_config.get("headless", True)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user