Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Use DEFAULT_DESTINATION_REF constant in order_request.py (#1202)
* Initial plan

* Use DEFAULT_DESTINATION_REF constant in order_request.py

Co-authored-by: asonnenschein <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: asonnenschein <[email protected]>
  • Loading branch information
Copilot and asonnenschein authored Nov 12, 2025
commit 2482597bf22b8241a3e14e409bfd2622f2747029
3 changes: 2 additions & 1 deletion planet/order_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from typing import Any, Dict, List, Mapping, Optional, Union

from . import geojson, specs
from .clients.destinations import DEFAULT_DESTINATION_REF
from .exceptions import ClientError

LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -414,7 +415,7 @@ def default_destination(path_prefix: Optional[str] = None) -> dict:
Parameters:
path_prefix: Path prefix for deliveries.
"""
parameters: Dict[str, Any] = {'ref': 'pl:destinations/default'}
parameters: Dict[str, Any] = {'ref': DEFAULT_DESTINATION_REF}

if path_prefix:
parameters['path_prefix'] = path_prefix
Expand Down