Skip to content

Commit

Permalink
Merge pull request #225 from galaxyproject/224-import-dataset-history…
Browse files Browse the repository at this point in the history
…-name

Dataset import
  • Loading branch information
ksuderman authored Jun 26, 2023
2 parents 9872e73 + a6c5326 commit 9d439b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion abm/lib/dataset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json

from bioblend.galaxy import dataset_collections
from common import connect, Context, print_json, _get_dataset_data, _make_dataset_element
from common import connect, Context, print_json, _get_dataset_data, _make_dataset_element, find_history
from pprint import pprint
from pathlib import Path

Expand Down Expand Up @@ -147,6 +147,7 @@ def collection(context: Context, args: list):
def import_from_config(context: Context, args: list):
gi = None
key = None
history = None
kwargs = {}
while len(args) > 0:
arg = args.pop(0)
Expand Down Expand Up @@ -178,6 +179,9 @@ def import_from_config(context: Context, args: list):

if gi is None:
gi = connect(context)
if history is not None:
history = find_history(gi, history)

response = gi.tools.put_url(url, history, **kwargs)
print(json.dumps(response, indent=4))

Expand Down

0 comments on commit 9d439b7

Please sign in to comment.