display total amounts for wallet

This commit is contained in:
2021-01-08 07:56:27 +01:00
parent 94ae551041
commit 2d7f73a531
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -60,5 +60,14 @@
{% endfor %}
<br/><br/><br/>
<h3>Total wallet</h3>
Total investment: {{total_investment|floatformat:2}} EUR<br/>
Virtual value of wallet: {{current_value|floatformat:2}} EUR<br/>
Total tax free: {{total_tax_free|floatformat:2}} EUR<br/>
</div>
{% endblock %}
+1 -1
View File
@@ -19,4 +19,4 @@ def monitor(request):
cryptos.append({"crypto": crypto, "rateEUR": rateEUR, "rateUSD": rateUSD, **out2})
return render(request,"monitor.html",{'cryptos':cryptos})
return render(request,"monitor.html",{'cryptos':cryptos, 'total_tax_free': total_tax_free, 'total_investment': total_investment, 'current_value': current_value})