Skip to content

Commit

Permalink
[ProfileData] fix dataclasses "mutable default for field is not allow…
Browse files Browse the repository at this point in the history
…ed" error
  • Loading branch information
srdjan0 committed May 24, 2024
1 parent 5883759 commit 59a1bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octobot_commons/profiles/profile_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ class OptionsData(octobot_commons.dataclasses.FlexibleDataclass):
class ProfileData(octobot_commons.dataclasses.MinimizableDataclass):
profile_details: ProfileDetailsData
crypto_currencies: list[CryptoCurrencyData]
trading: TradingData
trading: TradingData = dataclasses.field(default_factory=TradingData)
exchanges: list[ExchangeData] = dataclasses.field(default_factory=list)
trader: TraderData = TraderData()
trader: TraderData = dataclasses.field(default_factory=TraderData)
trader_simulator: TraderSimulatorData = dataclasses.field(
default_factory=TraderSimulatorData
)
Expand Down

0 comments on commit 59a1bfe

Please sign in to comment.