From 001deb3734b6295b39c4431a21b56a2ff4a06537 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 2 Aug 2021 10:23:23 -0400 Subject: fixed a bug --- app/trading/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/trading') diff --git a/app/trading/views.py b/app/trading/views.py index c9dbeec..aa68192 100644 --- a/app/trading/views.py +++ b/app/trading/views.py @@ -17,7 +17,7 @@ class LuxTradeListView(PaginatedListView): context['options_trades'] = LuxOptionsTrade.objects.filter(status__in=[0,2]) context['options_trades_closed'] = LuxOptionsTrade.objects.filter(status=1) context['monthly_pl'] = LuxTrade.stats.get_month_pl() - context['year_pl'] = LuxTrade.stats.get_month_pl() + context['year_pl'] = LuxTrade.stats.get_year_pl() context['month'] = datetime.now().strftime('%h') return context -- cgit v1.2.3-70-g09d2