Skip to content

Commit

Permalink
[skip ci] prevent blank names on filter spectrum name
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jul 19, 2018
1 parent a034423 commit 18b2bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proteins/models/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def name(self):
elif self.owner_dye:
return "{} {}".format(self.owner, self.subtype)
elif self.owner_filter:
return "{}".format(self.owner.part)
return str(self.owner.part or self.owner)
else:
return str(self.owner)

Expand Down

0 comments on commit 18b2bdb

Please sign in to comment.