Skip to content

Commit 59719ce

Browse files
authored
fix: uncomment temporal in CMR granules search (#136)
* fix: uncomment temporal * chore: update changelog
1 parent c4aaa3e commit 59719ce

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [3.3.0] - 2023-01-23
8+
## [3.3.1] - 2023-04-13
9+
### Changed
10+
- [#136](https://github.com/unity-sds/unity-data-services/pull/136) fix: uncomment temporal in CMR granules search
11+
12+
## [3.3.0] - 2023-04-11
913
### Added
1014
- [#134](https://github.com/unity-sds/unity-data-services/pull/134) feat: add option to parse downloading stac from file
1115

12-
## [3.2.0] - 2023-01-23
16+
## [3.2.0] - 2023-04-11
1317
### Added
1418
- [#131](https://github.com/unity-sds/unity-data-services/pull/131) granules query pagination
1519

16-
## [3.1.0] - 2023-01-23
20+
## [3.1.0] - 2023-04-11
1721
### Added
1822
- [#126](https://github.com/unity-sds/unity-data-services/pull/126) reduce pystac length by keeping only data asset
1923

cumulus_lambda_functions/stage_in_out/search_granules_cmr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ def search(self, **kwargs) -> str:
8686
'collection_concept_id': self.__collection_id,
8787
'page_num': str(page_num),
8888
'page_size': str(page_size),
89-
# 'temporal[]': f'{self.__date_from},{self.__date_to}'
89+
'temporal[]': f'{self.__date_from},{self.__date_to}'
9090
}
9191
cmr_granules_url = f'{self.__cmr_base_url}search/granules.stac'
9292
response = requests.post(url=cmr_granules_url, headers=header, verify=self.__verify_ssl,
9393
data=request_body)
94-
if response.status_code > 400:
94+
if response.status_code >= 400:
9595
raise RuntimeError(
9696
f'Cognito ends in error. status_code: {response.status_code}. url: {cmr_granules_url}. details: {response.text}')
9797
temp_results = json.loads(response.content.decode('utf-8'))['features']

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name="cumulus_lambda_functions",
20-
version="3.3.0",
20+
version="3.3.1",
2121
packages=find_packages(),
2222
install_requires=install_requires,
2323
tests_require=['mock', 'nose', 'sphinx', 'sphinx_rtd_theme', 'coverage', 'pystac', 'python-dotenv', 'jsonschema'],

0 commit comments

Comments
 (0)