Skip to content

Commit

Permalink
fix: graph Iterator node
Browse files Browse the repository at this point in the history
  • Loading branch information
VinciGit00 committed Sep 22, 2024
1 parent 69880b6 commit 8ce08ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scrapegraphai/graphs/smart_scraper_multi_concat_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def _create_graph(self) -> BaseGraph:
node_config={
"graph_instance": SmartScraperGraph,
"scraper_config": self.copy_config,
"scraper_schema": self.copy_schema,
}
},
schema=self.copy_schema,
)

concat_answers_node = ConcatAnswersNode(
Expand Down
2 changes: 1 addition & 1 deletion scrapegraphai/nodes/graph_iterator_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def _async_run(graph):
if url.startswith("http"):
graph.input_key = "url"
participants.append(graph)

futures = [_async_run(graph) for graph in participants]

answers = await tqdm.gather(
Expand Down

0 comments on commit 8ce08ba

Please sign in to comment.