Skip to content

Commit

Permalink
Merge branch 'mr/adjust_qualifier_serialization' into 'master'
Browse files Browse the repository at this point in the history
Add missing key when serializing key/set qualifier to str

See merge request it/e3-core!36
  • Loading branch information
Nikokrock committed Aug 23, 2024
2 parents 8a841e5 + 2226379 commit ab42541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/e3/anod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ def qualifier_dict_to_str(qual: dict) -> str:
else:
# Empty string is used also for tag value. Should be removed
# once switch to dict is complete
tmp.append(f"{k}")
tmp.append(k)
elif isinstance(v, bool):
if v:
tmp.append(k)
elif v:
tmp.append(";".join(sorted(v)))
tmp.append(f"{k}=" + ";".join(sorted(v)))

return ",".join(sorted(tmp))

Expand Down

0 comments on commit ab42541

Please sign in to comment.