summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-03-16 10:14:11 -0400
committerlxf <sng@luxagraf.net>2022-03-16 10:14:11 -0400
commit35fcfdc28c2aa3d0872e20344e5949bbd798af5f (patch)
treed5459611dc07776ee86a4bd3de697f61d011808a
parente01eb018357fef1a0c4a85342a59765561dcdbe4 (diff)
trad: fixed another import bug
-rw-r--r--app/trading/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/trading/views.py b/app/trading/views.py
index ccfd611..86556f3 100644
--- a/app/trading/views.py
+++ b/app/trading/views.py
@@ -19,6 +19,7 @@ class LuxTradeListView(PaginatedListView):
context['open_trades'] = LuxTrade.objects.filter(status=0)
context['watch_trades'] = LuxTrade.objects.filter(status=2)
context['options_trades'] = LuxOptionsTrade.objects.filter(status__in=[0,2])
+ month = timezone.now().month
last_day = calendar.monthrange(timezone.now().year, month)[1]
start_date = datetime.date(timezone.now().year, month, 1)
end_date = datetime.date(timezone.now().year, month, last_day)