Skip to content

Commit

Permalink
Fix ModelAttribute serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Nov 23, 2024
1 parent 4ba508e commit c101ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ltk/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def decode(self, json_encoding: str):
def encode(self):
""" Encode the model as JSON """
return json.dumps({
name: value.get()
name: value.get_value()
for name, value in self.__dict__.items()
if isinstance(value, ModelAttribute)
})
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pyscript-ltk"
version = "0.2.3"
version = "0.2.4"
description = "A little toolkit for writing UIs in PyScript"
readme = "README.md"
authors = [{ name = "Chris Laffra", email = "chris@chrislaffra.com" }]
Expand Down

0 comments on commit c101ab7

Please sign in to comment.