sort the currencies on the monitor
This commit is contained in:
@@ -7,7 +7,7 @@ from apps.monitor.calc import Calc
|
|||||||
@login_required
|
@login_required
|
||||||
def monitor(request):
|
def monitor(request):
|
||||||
transactions = Transaction.objects.filter(owner=request.user)
|
transactions = Transaction.objects.filter(owner=request.user)
|
||||||
crypto_currencies = {tr.crypto_currency for tr in transactions}
|
crypto_currencies = sorted({tr.crypto_currency for tr in transactions})
|
||||||
cryptos = []
|
cryptos = []
|
||||||
total_investment = 0
|
total_investment = 0
|
||||||
current_value = 0
|
current_value = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user