Skip to content

Commit d64a671

Browse files
committed
🐛 model dump시 json mode 적용
1 parent 15a02eb commit d64a671

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyrb/models/account.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ class Account(BaseModel, ABC):
1313
id: uuid.UUID = Field(default_factory=uuid.uuid4)
1414

1515
def to_toml(self) -> str:
16-
model_dict = self.model_dump()
17-
model_dict.update({"brokerage": self.brokerage.value})
16+
model_dict = self.model_dump(mode="json")
1817
return toml.dumps(model_dict)
1918

2019

0 commit comments

Comments
 (0)