display total amounts for wallet
This commit is contained in:
@@ -59,6 +59,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endfor %}
|
{% 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>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -19,4 +19,4 @@ def monitor(request):
|
|||||||
|
|
||||||
cryptos.append({"crypto": crypto, "rateEUR": rateEUR, "rateUSD": rateUSD, **out2})
|
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