Encode decimals as number in JSON

This commit is contained in:
Oliver Traber 2025-04-28 17:52:35 +00:00
parent 6f91d008a1
commit ceb337b87c
Signed by: Bluemedia
GPG key ID: C0674B105057136C
6 changed files with 36 additions and 1 deletions

View file

@ -8,4 +8,5 @@ class Session(BaseModel):
name: str
last_used: datetime
model_config = {"from_attributes": True}
class Config:
from_attributes = True