mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-17 13:21:15 +00:00
fix: update _rpc_list_custom_data to add all custom data only if key is not provided
This commit is contained in:
@@ -1138,8 +1138,8 @@ class RPC:
|
||||
data = trade.get_custom_data(key=key)
|
||||
if data:
|
||||
custom_data = [data]
|
||||
|
||||
custom_data.extend(trade.get_all_custom_data())
|
||||
else:
|
||||
custom_data.extend(trade.get_all_custom_data())
|
||||
|
||||
# Format the results
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user