summaryrefslogtreecommitdiff
path: root/app/trading
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-03-16 10:46:50 -0400
committerlxf <sng@luxagraf.net>2022-03-16 10:46:50 -0400
commit9043217994b9b447ae73d16247e95e6f0a81b854 (patch)
tree680f7398048d279220261d41ea36574e177c14c7 /app/trading
parent3602afb7d17d21ab9437ef3ac6443617f100cf08 (diff)
trad: fixed a bug in the main list view
Diffstat (limited to 'app/trading')
-rw-r--r--app/trading/views.py2
1 files changed, 1 insertions, 1 deletions
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):