Skip to content

Commit a764b60

Browse files
committed
Incorporate suggestions from nsoranzo
1 parent c0ca87d commit a764b60

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bioblend/galaxy/histories/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ def create_history(self, name: str | None = None) -> dict[str, Any]:
5656
return self._post(payload)
5757

5858
def copy_history(
59-
self, source_history_id: str, name: str | None = None, all_datasets: bool = False
59+
self, history_id: str, name: str | None = None, all_datasets: bool = False
6060
) -> dict[str, Any]:
6161
"""
6262
Create a new history by copying an existing one.
6363
64-
:type source_history_id: str
65-
:param source_history_id: ID of the history to copy.
64+
:type history_id: str
65+
:param history_id: ID of the history to copy.
6666
6767
:type name: str
6868
:param name: Optional name for new history
6969
7070
:type all_datasets: bool
71-
:param all_datasets: If ``True``, copy all datasets, including deleted
71+
:param all_datasets: Whether to copy also deleted datasets and dataset collections.
7272
7373
:rtype: dict
74-
:return: Dictionary containing information about newly created history
74+
:return: Dictionary containing information about the newly created history
7575
"""
7676
payload: dict[str, Any] = {"source": "history"}
7777
if name is not None:
7878
payload["name"] = name
79-
payload["history_id"] = source_history_id
79+
payload["history_id"] = history_id
8080
if all_datasets:
8181
payload["all_datasets"] = all_datasets
8282

0 commit comments

Comments
 (0)