display total amounts for wallet
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user