Skip to content

Commit

Permalink
Merge pull request #232 from galaxyproject/230-find-history
Browse files Browse the repository at this point in the history
Find History
  • Loading branch information
ksuderman authored Jul 29, 2023
2 parents e629ccc + 7fe7cb0 commit b89b350
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions abm/lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ def get_keys(d: dict):


def find_history(gi, name_or_id):
history = gi.histories.get_histories(history_id=name_or_id)
if history is not None and len(history) > 0:
return history[0]['id']
history = gi.histories.get_histories(name=name_or_id)
if history is None:
return name_or_id
Expand Down

0 comments on commit b89b350

Please sign in to comment.