Skip to content

Commit

Permalink
fix: parameter name not translated in tool summary
Browse files Browse the repository at this point in the history
  • Loading branch information
knipknap committed Aug 27, 2023
1 parent b37470a commit fb8421b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions btl/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_param_summary(self):

for name in self.well_known:
param = self.get_param(name)
if not param:
if not param or not param.v:
continue
abbr = self.get_abbr(param)

Expand All @@ -154,7 +154,8 @@ def get_param_summary(self):
elif param.choices is not None:
summary += ' '+param.format()
else:
summary += ' {} {}'.format(param.label, param.format())
label = get_property_label_from_name(param.name, param.label)
summary += ' {} {}'.format(label, param.format())

return summary.strip()

Expand Down

0 comments on commit fb8421b

Please sign in to comment.