jsonenc-fix
All checks were successful
Deploy on push / deploy (push) Successful in 12s

This commit is contained in:
Untone 2025-03-20 11:59:43 +03:00
parent 247fc98760
commit edece36ecc

View File

@ -1,9 +1,9 @@
from decimal import Decimal
import orjson
from json import JSONEncoder
class CustomJSONEncoder(orjson.JSONEncoder):
class CustomJSONEncoder(JSONEncoder):
def default(self, obj):
if isinstance(obj, Decimal):
return str(obj)