diff options
author | lxf <sng@luxagraf.net> | 2022-01-13 10:13:21 -0500 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-01-13 10:13:21 -0500 |
commit | 6292a0cd72489c877806fd3a15b8faef2fc3c823 (patch) | |
tree | 98e065f2360b106962c41fc99f1b694be2b050bb /app | |
parent | b017e4423d786eb2b739cf6dc51e9c49cad20b59 (diff) |
trad: moved rounding to template
Diffstat (limited to 'app')
-rw-r--r-- | app/trading/templates/trading/list.html | 4 |
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> |