Rename variable to show it's just a temporary variable

This commit is contained in:
Matthias 2024-05-05 16:12:22 +02:00
parent 7ba285fbbb
commit 566add7a8b

View File

@ -508,10 +508,10 @@ class RPC:
profit_ratio = NAN profit_ratio = NAN
profit_abs = NAN profit_abs = NAN
else: else:
profit = trade.calculate_profit(trade.close_rate or current_rate) _profit = trade.calculate_profit(trade.close_rate or current_rate)
profit_ratio = profit.profit_ratio profit_ratio = _profit.profit_ratio
profit_abs = profit.total_profit profit_abs = _profit.total_profit
profit_all_coin.append(profit_abs) profit_all_coin.append(profit_abs)
profit_all_ratio.append(profit_ratio) profit_all_ratio.append(profit_ratio)