summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-01-13 10:13:21 -0500
committerlxf <sng@luxagraf.net>2022-01-13 10:13:21 -0500
commit6292a0cd72489c877806fd3a15b8faef2fc3c823 (patch)
tree98e065f2360b106962c41fc99f1b694be2b050bb /app
parentb017e4423d786eb2b739cf6dc51e9c49cad20b59 (diff)
trad: moved rounding to template
Diffstat (limited to 'app')
-rw-r--r--app/trading/templates/trading/list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/trading/templates/trading/list.html b/app/trading/templates/trading/list.html
index 5c0c89e..909d2c4 100644
--- a/app/trading/templates/trading/list.html
+++ b/app/trading/templates/trading/list.html
@@ -32,8 +32,8 @@
{%endfor%}
</div>
- <td>${{object.total_invested}}</td>
- <td>${{object.trade_risk}}</td>
+ <td>${{object.total_invested|floatformat:2}}</td>
+ <td>${{object.trade_risk|floatformat:2}}</td>
<td>{{object.portfolio_risk|floatformat:2}}%</td>
<td>${{object.sell_half_at|floatformat:2}}</td>
<td>${{object.stop_price|floatformat:2}}</td>