Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openeo/rest/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
_ProcessGraphAbstraction,
build_child_callback,
)
from openeo.rest.graph_building import CollectionProperty
from openeo.rest.graph_building import CollectionProperty, ProcessBuilder
from openeo.rest.job import BatchJob
from openeo.rest.mlmodel import MlModel
from openeo.rest.models.general import ValidationResponse
Expand Down Expand Up @@ -513,9 +513,9 @@ def _get_temporal_extent(
if len(args) == 1 and isinstance(args[0], Parameter):
assert start_date is None and end_date is None and extent is None
return args[0]
elif len(args) == 0 and isinstance(extent, Parameter):
elif len(args) == 0 and (isinstance(extent, Parameter) or isinstance(extent, ProcessBuilder)):
assert start_date is None and end_date is None
# TODO: warn about unexpected parameter schema
# TODO: warn about unexpected parameter or ProcessBuilder schema
return extent
else:
def convertor(d: Any) -> Any:
Expand Down