Skip to content

Commit

Permalink
fix: post_parsed return json value
Browse files Browse the repository at this point in the history
  • Loading branch information
yongcai committed Dec 26, 2024
1 parent 274a288 commit 2e36e40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pyinnodb/mconstruct/adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def __init__(self, cls, subcon):
def _parse(self, stream, context, path):
obj = super()._parse(stream, context, path)
if getattr(obj, "_post_parsed", None) is not None:
obj._post_parsed(stream, context, path)
v = obj._post_parsed(stream, context, path)
if v is not None:
setattr(obj, "_post_value", v)
return obj

def _build(self, obj, stream, context, path):
Expand Down

0 comments on commit 2e36e40

Please sign in to comment.