From 9043217994b9b447ae73d16247e95e6f0a81b854 Mon Sep 17 00:00:00 2001 From: lxf Date: Wed, 16 Mar 2022 10:46:50 -0400 Subject: trad: fixed a bug in the main list view --- app/trading/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/trading/views.py b/app/trading/views.py index 82904ca..95f531d 100644 --- a/app/trading/views.py +++ b/app/trading/views.py @@ -31,7 +31,7 @@ class LuxTradeListView(PaginatedListView): context['options_monthly_pl'] = LuxOptionPurchase.stats.get_month_pl() context['options_year_pl'] = LuxOptionPurchase.stats.get_year_pl() context['month'] = timezone.now().strftime('%h') - context['luxoptions_purchases'] = LuxOptionPurchase.objects.filter(close_date__range=(start_date, end_date)) + context['luxoptions_purchases'] = LuxOptionPurchase.objects.filter(open_date__range=(start_date, end_date)) return context def get_queryset(self): -- cgit v1.2.3-70-g09d2