From 7fd9eb78c070a3115dfd5647d72cd566878d8e63 Mon Sep 17 00:00:00 2001 From: Phuoc CAO Date: Sat, 17 Dec 2022 06:32:21 +0100 Subject: [PATCH] fixed typo --- caotek_mesavoirs/views/portfolio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caotek_mesavoirs/views/portfolio.py b/caotek_mesavoirs/views/portfolio.py index 0223c48..a2055f5 100644 --- a/caotek_mesavoirs/views/portfolio.py +++ b/caotek_mesavoirs/views/portfolio.py @@ -91,7 +91,7 @@ def portfolio(request): total_valeur += item.valeur total_pv += item.plus_value if total_valeur == 0: - total_pc_value + total_pc_value = 0 else: total_pc_value = total_pv / total_valeur * 100 total_rdt += item.rendement