diff --git a/scenes/download.py b/scenes/download.py index 7be738e77217f38b7ad176b2d042c02d3b2ca1d9..d36b7c57c99220dfeb3fa9a501026cc2f18172ac 100644 --- a/scenes/download.py +++ b/scenes/download.py @@ -8,7 +8,7 @@ import json from urllib.parse import urlencode -def curl_url(url, postdata, verbose=False, fp=None, header=['Accept:application/json']): +def curl_url(url, postdata, verbose=False, fp=None, header=('Accept:application/json')): """ Use PyCurl to make some requests :param url: url diff --git a/test/download_test.py b/test/download_test.py index 7bc93c79fd06c0a3c57ce7a1acf3274b62b49a33..feeb11df80cd08cb07026a78a2c0cf4c5e912975 100644 --- a/test/download_test.py +++ b/test/download_test.py @@ -1,5 +1,6 @@ import argparse from scenes import download, utils +import datetime # Arguments parser = argparse.ArgumentParser(description="Download test",) @@ -9,4 +10,4 @@ params = parser.parse_args() # Get all scenes in the root_dir _, _, bbox = utils.get_epsg_extent_bbox(params.refimage) -download.download(config_file=params.theia_cfg, acq_envelope=bbox, acq_date='01-01-2021') \ No newline at end of file +download.download(config_file=params.theia_cfg, acq_envelope=bbox, acq_date=datetime.datetime(year=2020, month=01, day=01)) \ No newline at end of file