Skip to content

Commit 2482597

Browse files
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 <3228909+asonnenschein@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: asonnenschein <3228909+asonnenschein@users.noreply.github.com>
1 parent 48a8d62 commit 2482597

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

planet/order_request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from typing import Any, Dict, List, Mapping, Optional, Union
1919

2020
from . import geojson, specs
21+
from .clients.destinations import DEFAULT_DESTINATION_REF
2122
from .exceptions import ClientError
2223

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

419420
if path_prefix:
420421
parameters['path_prefix'] = path_prefix

0 commit comments

Comments
 (0)