Skip to content

Commit

Permalink
backwards compatibility for column labels
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzoic committed Jul 11, 2024
1 parent c603d2f commit d3160cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions countess/core/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ def set_parameter(self, key: str, value: Union[bool, int, float, str], base_dir:
param = self.parameters
for k in key.split("."):
if k == "_label" and hasattr(param, "label"):

# XXX backwards compatibility with pre 0.0.63 versions
# which accidentally saved labels with quotes around them.
# TODO remove this when 0.1.0 is ready.
if value.startswith('"') and value.endswith('"'):
value = value[1:-1]

param.label = value
return

Expand Down

0 comments on commit d3160cd

Please sign in to comment.