Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ialirt_data_access/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"log_query",
"packet_query",
]
__version__ = "0.9.0"
__version__ = "0.10.0"


config = {
Expand Down
2 changes: 1 addition & 1 deletion ialirt_data_access/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <imap-sdc@lists.lasp.colorado.edu>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Loading