From 0b60f73e4433454b8b9a471a90a580b5be28b589 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Fri, 13 Dec 2024 23:27:54 -0300 Subject: [PATCH] refactor: remove duplicate calculation --- app/apps/dca/views.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/apps/dca/views.py b/app/apps/dca/views.py index b17b260..cfdfa97 100644 --- a/app/apps/dca/views.py +++ b/app/apps/dca/views.py @@ -140,19 +140,6 @@ def strategy_detail(request, strategy_id): ] entries_data.reverse() - # Prepare entries data with current values - # Prepare entries data with current values - entries_data = [ - { - "entry": entry, - "current_value": entry.current_value(), - "profit_loss": entry.profit_loss(), - "profit_loss_percentage": entry.profit_loss_percentage(), - } - for entry in entries - ] - entries_data.reverse() - context = { "strategy": strategy, "entries": entries,