Skip to content

Commit

Permalink
Merge pull request galaxyproject#16425 from jdavcs/dev_sa20_fix12
Browse files Browse the repository at this point in the history
Fix SA2.0 syntax in scripts/helper.py, fix ancient bug
  • Loading branch information
mvdbeek committed Jul 21, 2023
2 parents da965dc + 25cc282 commit 013c174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
hda_id = int(args.hda_id)
except Exception:
hda_id = int(helper.decode_id(args.hda_id))
hda = model.context.current.query(model.HistoryDatasetAssociation).get(hda_id)
hda = model.session.get(model.HistoryDatasetAssociation, hda_id)
print(f'HDA "{hda.id}" is Dataset "{hda.dataset.id}" at: {hda.file_name}')

if args.ldda_id:
try:
ldda_id = int(args.ldda_id)
except Exception:
ldda_id = int(helper.decode_id(args.ldda_id))
ldda = model.context.current.query(model.HistoryDatasetAssociation).get(ldda_id)
ldda = model.session.get(model.LibraryDatasetDatasetAssociation, ldda_id)
print(f'LDDA "{ldda.id}" is Dataset "{ldda.dataset.id}" at: {ldda.file_name}')

0 comments on commit 013c174

Please sign in to comment.