From 86d1d2cd80aa2f954d4fc714e4c4a9b20973a8ae Mon Sep 17 00:00:00 2001 From: Timotheus Pokorra Date: Fri, 8 Jan 2021 07:18:16 +0100 Subject: [PATCH] sort the currencies on the monitor --- apps/monitor/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/monitor/views.py b/apps/monitor/views.py index bb88b7e..5339047 100644 --- a/apps/monitor/views.py +++ b/apps/monitor/views.py @@ -7,7 +7,7 @@ from apps.monitor.calc import Calc @login_required def monitor(request): 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 = [] total_investment = 0 current_value = 0