summaryrefslogtreecommitdiff
path: root/app/trading
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2021-08-02 10:23:23 -0400
committerluxagraf <sng@luxagraf.net>2021-08-02 10:23:23 -0400
commit001deb3734b6295b39c4431a21b56a2ff4a06537 (patch)
tree92c81dbdf8519313dffef9f86389f9b2b02ed42f /app/trading
parent8fd0a19c40bbc785c7829cf57a92c3f8c38a4364 (diff)
fixed a bug
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 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