Skip to content

Commit 31cbf82

Browse files
committed
fix url
1 parent 544a43d commit 31cbf82

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

planet/cli/subscriptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,10 +571,10 @@ def request_pv(var_type, var_id, geometry, start_time, end_time, pretty):
571571
more details.
572572
"""
573573
res = subscription_request.planetary_variable_source(
574+
var_type,
574575
var_id,
575576
geometry,
576577
start_time,
577-
var_type=var_type,
578578
end_time=end_time,
579579
)
580580
echo_json(res, pretty)

planet/clients/destinations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from ..constants import PLANET_BASE_URL
2222

2323

24-
BASE_URL = f'{PLANET_BASE_URL}/public/destinations/v1/'
24+
BASE_URL = f'{PLANET_BASE_URL}/destinations/v1/'
2525

2626
LOGGER = logging.getLogger()
2727

planet/subscription_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ def catalog_source(
278278

279279

280280
def planetary_variable_source(
281+
var_type: Optional[str],
281282
var_id: str,
282283
geometry: Union[dict, str],
283284
start_time: datetime,
284-
var_type: Optional[str] = None,
285285
end_time: Optional[datetime] = None,
286286
) -> dict:
287287
"""Construct a Planetary Variable subscription source.
@@ -297,16 +297,16 @@ def planetary_variable_source(
297297
Note: this function does not validate variable types and ids.
298298
299299
Parameters:
300+
var_type: Planetary Variable type. See documentation for all
301+
available types. Used to be a required parameter but
302+
is now optional and can be 'None'.
300303
var_id: A Planetary Variable ID. See documenation for all
301304
available IDs.
302305
geometry: The area of interest of the subscription that will be
303306
used to determine matches. May be a geojson-like dict or a
304307
Features API geometry reference (string)
305308
start_time: The start time of the subscription. This time can be
306309
in the past or future.
307-
var_type: Planetary Variable type. See documentation for all
308-
available types. Used to be a required parameter but
309-
is now optional and can be 'None'.
310310
end_time: The end time of the subscription. This time can be in
311311
the past or future, and must be after the start_time.
312312

0 commit comments

Comments
 (0)