Skip to content

Commit

Permalink
Default HID to -1 if for whatever reason we didn't record a HID
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Apr 22, 2024
1 parent c2140bd commit 121f27e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/managers/hdas.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ def add_serializers(self):
annotatable.AnnotatableSerializerMixin.add_serializers(self)

serializers: Dict[str, base.Serializer] = {
"hid": lambda item, key, **context: item.hid if item.hid is not None else -1,
"model_class": lambda item, key, **context: "HistoryDatasetAssociation",
"history_content_type": lambda item, key, **context: "dataset",
"hda_ldda": lambda item, key, **context: "hda",
Expand Down

0 comments on commit 121f27e

Please sign in to comment.