From 2f04c585bed9a5cc6987f10f8e6bcdec86a1edbf Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 20 Jul 2021 22:02:28 -0400 Subject: trad: fixed filter bug in main list view --- 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 aece7b2..ae4098c 100644 --- a/app/trading/views.py +++ b/app/trading/views.py @@ -14,7 +14,7 @@ class LuxTradeListView(PaginatedListView): context = super(LuxTradeListView, self).get_context_data(**kwargs) context['open_trades'] = LuxTrade.objects.filter(status=0) context['watch_trades'] = LuxTrade.objects.filter(status=2) - context['options_trades'] = LuxOptionsTrade.objects.filter(status=2) + context['options_trades'] = LuxOptionsTrade.objects.filter(status=0) context['monthly_pl'] = LuxTrade.stats.get_month_pl() context['month'] = datetime.now().strftime('%h') return context -- cgit v1.2.3-70-g09d2