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 Sep 1, 2024
1 parent 32a042d commit 256812e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octobot_commons/profiles/profile_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ 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 = dataclasses.field(default_factory=TraderData)
trader_simulator: TraderSimulatorData = dataclasses.field(
Expand Down

0 comments on commit 256812e

Please sign in to comment.