From 2b74d4f1a495f25caf3aacd0bdc212a10e840cbf Mon Sep 17 00:00:00 2001 From: Laura Sandoval Date: Thu, 2 Apr 2026 10:01:10 -0600 Subject: [PATCH 1/2] bugfix and new version --- ialirt_data_access/__init__.py | 2 +- ialirt_data_access/io.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ialirt_data_access/__init__.py b/ialirt_data_access/__init__.py index e89aacf..a5d8aaf 100644 --- a/ialirt_data_access/__init__.py +++ b/ialirt_data_access/__init__.py @@ -21,7 +21,7 @@ "log_query", "packet_query", ] -__version__ = "0.9.0" +__version__ = "0.10.0" config = { diff --git a/ialirt_data_access/io.py b/ialirt_data_access/io.py index 8e70a7a..531ecc7 100644 --- a/ialirt_data_access/io.py +++ b/ialirt_data_access/io.py @@ -235,7 +235,7 @@ def download( downloads_dir = Path.home() / "Downloads" / filetype url = f"{ialirt_data_access.config['DATA_ACCESS_URL']}" - url += f"/ialirt-download/{filetype}/{filename}" + url += f"/api-key/ialirt-download/{filetype}/{filename}" downloads_dir.mkdir(parents=True, exist_ok=True) destination = downloads_dir / filename diff --git a/pyproject.toml b/pyproject.toml index 163932b..751190a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "ialirt-data-access" -version = "0.9.0" +version = "0.10.0" description = "I-ALiRT Data Access" authors = ["IMAP SDC Developers "] readme = "README.md" From a81d7375cfe05ab7c04137f21adbec0c05e3a88e Mon Sep 17 00:00:00 2001 From: Laura Sandoval Date: Thu, 2 Apr 2026 11:34:47 -0600 Subject: [PATCH 2/2] fix test --- tests/test_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_io.py b/tests/test_io.py index 3a7ea28..ad73aa2 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -158,7 +158,7 @@ def test_download(mock_urlopen: unittest.mock.MagicMock, tmp_path: Path): mock_urlopen.assert_called_once() urlopen_call = mock_urlopen.mock_calls[0].args[0] called_url = urlopen_call.full_url - expected_url = f"https://ialirt.test.com/ialirt-download/logs/{filename}" + expected_url = f"https://ialirt.test.com/api-key/ialirt-download/logs/{filename}" assert called_url == expected_url assert urlopen_call.method == "GET"