fix: update _rpc_list_custom_data to add all custom data only if key is not provided

This commit is contained in:
Axel-CH
2025-03-07 14:08:21 -04:00
parent aec496a73b
commit 93c8a11824

View File

@@ -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 [