From 56aa9a61b671077891e71d71553e68f6ec336d47 Mon Sep 17 00:00:00 2001 From: Forrest Williams Date: Mon, 26 Aug 2024 12:41:58 -0500 Subject: [PATCH 1/3] fix attribute error when calling datetime.UTC --- asf_search/CMR/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asf_search/CMR/translate.py b/asf_search/CMR/translate.py index d4b8359e..959df7f7 100644 --- a/asf_search/CMR/translate.py +++ b/asf_search/CMR/translate.py @@ -202,7 +202,7 @@ def fix_date(fixed_params: Dict[str, Any]): fixed_params['start'] if 'start' in fixed_params else '1978-01-01T00:00:00Z' ) fixed_params['end'] = ( - fixed_params['end'] if 'end' in fixed_params else datetime.now(datetime.UTC).isoformat() + fixed_params['end'] if 'end' in fixed_params else datetime.now(timezone.utc).isoformat() ) fixed_params['season'] = ( ','.join(str(x) for x in fixed_params['season']) if 'season' in fixed_params else '' From 0e46438ee6901debd413cc1770bbd7c703fc1490 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 26 Aug 2024 10:06:50 -0800 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d939deb..16aa6754 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,11 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - --> +------ +## [v8.0.1](https://github.com/asfadmin/Discovery-asf_search/compare/v8.0.0...v8.0.1) +### Fixed +- Fixed setting end date timezone when translating search opts to CMR opts + ------ ## [v8.0.0](https://github.com/asfadmin/Discovery-asf_search/compare/v7.1.0...v7.2.0) ### Added From 779fd0070be2560da00b4656fcff2b864ec5f404 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 26 Aug 2024 10:18:56 -0800 Subject: [PATCH 3/3] ruff linter now only runs on source code dir --- .github/workflows/lint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4956a748..4d0447be 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,3 +7,5 @@ jobs: steps: - uses: actions/checkout@v4 - uses: chartboost/ruff-action@v1 + with: + src: './asf_search' \ No newline at end of file