Skip to content

Commit

Permalink
Fix hda updating when it shouldn't
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs authored and mvdbeek committed Mar 21, 2024
1 parent 1446110 commit 8eb5967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5038,7 +5038,7 @@ def __create_version__(self, session):

# hist.deleted holds old value(s)
changes[attr.key] = hist.deleted
if self.update_time and self.state == self.states.OK and not self.deleted:
if changes and self.update_time and self.state == self.states.OK and not self.deleted:
# We only record changes to HDAs that exist in the database and have a update_time
new_values = {}
new_values["name"] = changes.get("name", self.name)
Expand Down

0 comments on commit 8eb5967

Please sign in to comment.