From f02f88111e13481da7dcff4fbbbe5f425805582f Mon Sep 17 00:00:00 2001 From: code-URI Date: Fri, 13 Feb 2026 15:43:19 +0530 Subject: [PATCH] Fix json_ready_sym to serialize actual attribute values - Changed line 14 to use getattr(symbol, attr) instead of hardcoding True - Fixes data loss for numerical attributes like multiplier - Closes #90 --- src/events/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/events.py b/src/events/events.py index c596ac1c..03503116 100644 --- a/src/events/events.py +++ b/src/events/events.py @@ -11,7 +11,7 @@ def json_ready_sym(symbol: object, special_attributes: list = None): for attr in special_attributes: if hasattr(symbol, attr) and getattr(symbol, attr): - print_sym[attr] = True + print_sym[attr] = getattr(symbol, attr) elif attr in symbol.defn.special_flags: print_sym[attr] = True