Skip to content

Commit 8247f03

Browse files
committed
Duck-typing products for the exchanges tab
1 parent e1d5b18 commit 8247f03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

activity_browser/bwutils/commontasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def is_node_product(node: tuple | int | bd.Node) -> bool:
202202
if raw_type in ["product", "processwithreferenceproduct"]:
203203
return True
204204

205-
if raw_type == "process" and len(node.production()):
205+
if raw_type == "process" and len(node.upstream(kinds=["production"])):
206206
return True
207207

208208
return False

0 commit comments

Comments
 (0)