summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2021-07-20 22:02:28 -0400
committerluxagraf <sng@luxagraf.net>2021-07-20 22:02:28 -0400
commit2f04c585bed9a5cc6987f10f8e6bcdec86a1edbf (patch)
treea23f40545fa488549b941a44708956378e49c882
parente7139125c7374a9732fc057e2b7f88447cf04d8d (diff)
trad: fixed filter bug in main list view
-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 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